struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20070212-2.c
blob32ba41e95728843f5511ca2fd84116fa43061e15
1 /*
2 20070212-2.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(int k, int i1, int j1)
13 int *f1;
14 if(k)
15 f1 = &i1;
16 else
17 f1 = &j1;
18 i1 = 0;
19 return *f1;
22 void
23 testTortureExecute (void)
25 if (f(1, 1, 2) != 0)
26 ASSERT (0);
27 return;