struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-920428-1.c
blob9cc211366bd289b2dc3e95624690e4a03967cb1e
1 /*
2 920428-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 int
12 x (const char*s)
14 char a[1];
15 const char *ss = s;
16 a[*s++] |= 1;
17 return (int)ss + 1 == (int)s;
20 void
21 testTortureExecute (void)
23 ASSERT((x("") == 1));
24 return;