struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-vrp-7.c
blobff32fe3f060e760c577714e72d5a006ef5177e50
1 /*
2 vrp-7.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 struct T
9 int b : 1;
10 } t;
12 void foo (int f)
14 t.b = (f & 0x10) ? 1 : 0;
17 void
18 testTortureExecute (void)
20 foo (0x10);
21 if (!t.b)
22 ASSERT (0);
23 return;