struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20010123-1.c
blobaa6c48ef10fca494a70089726b00186aa8745718
1 /*
2 20010123-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
11 // TODO: Enable when supported by sdcc!
13 struct s
15 int value;
16 char *string;
19 void
20 testTortureExecute (void)
22 #if 0
23 int i;
24 for (i = 0; i < 4; i++)
26 struct s *t = & (struct s) { 3, "hey there" };
27 if (t->value != 3)
28 ASSERT (0);
29 t->value = 4;
30 if (t->value != 4)
31 ASSERT (0);
33 return;
34 #endif