struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000412-1.c
blob0e1bdc7a57e699d57b30eac849240ae27a8e8c75
1 /*
2 20000412-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 short int i = -1;
12 const char * const wordlist[207];
14 const char * const *
15 foo(void)
17 register const char * const *wordptr = &wordlist[207u + i];
18 return wordptr;
21 void
22 testTortureExecute (void)
24 ASSERT (foo() == &wordlist[206]);
25 #if 0
26 ASSERT (wordlist[0] == 0);
27 #endif
28 return;