struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-991023-1.c
blob032b52515254421a5d8751cf41e7b143b4627ff3
1 /*
2 991023-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 int blah;
13 int
14 foo(void)
16 int i;
18 for (i=0 ; i< 7 ; i++)
20 if (i == 7 - 1)
21 blah = 0xfcc;
22 else
23 blah = 0xfee;
25 return blah;
28 void
29 testTortureExecute (void)
31 ASSERT(foo () == 0xfcc);
32 return;