struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-991227-1.c
blobbec49e7991f051dde7d02d13838ba8a04c3db195
1 /*
2 991227-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 char* doit(int flag)
13 return 1 + (flag ? "\0wrong\n" : "\0right\n");
16 void
17 testTortureExecute (void)
19 char *result = doit(0);
20 if (*result == 'r' && result[1] == 'i')
21 return;
22 ASSERT (0);