struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3025.c
blob9cfbfff4d2d5aefeaa1411c7dd701b71085f80c0
1 /*
2 bug-3025.c. (exclusive) or on a bit-field triggered an assertion in AST processing.
3 */
5 #include <testfwk.h>
7 struct
9 int x : 1;
10 } c;
12 void f()
14 c.x ^ -1;
17 void g()
19 c.x | -1;
22 void
23 testBug (void)
25 f();
26 g();
27 return;