struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020206-1.c
blob4410160b5d2e8e2f642ca7d4d58652d221e32f6a
1 /*
2 20020206-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #if 0 // TODO: Enable when sdcc supports compound literals
12 struct A {
13 unsigned int a, b, c;
16 struct A bar (void)
18 return (struct A) { 176, 52, 31 };
21 void baz (struct A *a)
23 if (a->a != 176 || a->b != 52 || a->c != 31)
24 ASSERT (0);
26 #endif
27 void
28 testTortureExecute (void)
30 #if 0
31 struct A d;
33 d = ({ ({ bar (); }); });
34 baz (&d);
35 #endif