Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20031211-1.c
blob025dfd49d1ab7280038ade96698a799350818ee2
1 /*
2 20031211-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
12 struct a { unsigned int bitfield : 1; };
14 unsigned int x;
16 void
17 testTortureExecute (void)
19 struct a a = {0};
20 x = 0xbeef;
21 a.bitfield |= x;
22 if (a.bitfield != 1)
23 ASSERT (0);
24 return;