struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2423.c
blob4ce23218f1893b7f068152b3443d141fc86ecb32
1 /*
2 bug-2423.c
3 */
5 #include <testfwk.h>
7 #pragma disable_warning 147
9 struct foo_t {
10 unsigned int a, b, c;
13 struct foo_t foo = {0xaaaa, 0x5555, 0xcccc, 0x3333, 0xffff, 0x0000, 0x1111, 0x2222, 0x4444, 0x6666};
15 void testBug (void)
17 ASSERT (foo.a == 0xaaaa);
18 ASSERT (foo.b == 0x5555);
19 ASSERT (foo.c == 0xcccc);