struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20001130-1.c
blobd0a4a6872bb0d77b01c03491a683f0fef73fa54b
1 /*
2 20001130-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 static inline int bar(void) { return 1; }
12 static int mem[3];
14 static int foo(int x)
16 if (x != 0)
17 return x;
19 mem[x++] = foo(bar());
21 if (x != 1)
22 ASSERT(0);
24 return 0;
27 void
28 testTortureExecute (void)
30 foo(0);
31 return;