struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-941110-1.c
blob18706ec0e1df1225e2bf5bb60554ee8de513cfe1
1 /*
2 941110-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 f (const int x)
13 int y = 0;
14 y = x ? y : -y;
16 const int *p = &x;
18 return y;
21 void
22 testTortureExecute (void)
24 if (f (0))
25 ASSERT (0);
26 return;