struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20010422-1.c
blobe15f6b1f479642b32d1d32e4fd33d1ec9f46eefa
1 /*
2 20010422-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 unsigned int foo(unsigned int x)
13 if (x < 5)
14 x = 4;
15 else
16 x = 8;
17 return x;
20 void
21 testTortureExecute (void)
23 if (foo (8) != 8)
24 ASSERT (0);
25 return;