PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20071211-1.c
blob4a4f1fefc90675272b549f1790c3252ba4907987
1 extern void abort() __attribute__ ((noreturn));
3 struct s
5 unsigned long long f1 : 40;
6 #if(__SIZEOF_INT__ >= 4)
7 unsigned int f2 : 24;
8 #else
9 unsigned long int f2 : 24;
10 #endif
11 } sv;
13 int main()
15 int f2;
16 sv.f2 = (1 << 24) - 1;
17 __asm__ volatile ("" : : : "memory");
18 ++sv.f2;
19 f2 = sv.f2;
20 if (f2 != 0)
21 abort();
22 return 0;