git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-11-12 22:14:27 +00:00
Родитель e7ad14e182
Коммит 41296e8a63
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -7,9 +7,7 @@ typedef u_int32_t uint32_t;
typedef unsigned long long u_int64_t; typedef unsigned long long u_int64_t;
typedef u_int64_t uint64_t; typedef u_int64_t uint64_t;
struct S; int func() {
int func(struct S *s) {
// Error out if size is > 32-bits. // Error out if size is > 32-bits.
uint32_t msr = 0x8b; uint32_t msr = 0x8b;
uint64_t val = 0; uint64_t val = 0;
@ -23,7 +21,4 @@ int func(struct S *s) {
unsigned char data; unsigned char data;
unsigned int port; unsigned int port;
__asm__ volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); // No error expected. __asm__ volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); // No error expected.
// Don't error out for incomplete types.
__asm(""::"a"(*s)); // No error expected.
} }