struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20010403-1.c
blob3ee0e889572f8e56bc59c6f05fa30b78312a0516
1 /*
2 20010403-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 void b (int *);
13 void c (int, int);
14 void d (int);
16 int e;
18 void a (int x, int y)
20 int f = x ? e : 0;
21 int z = y;
23 b (&y);
24 c (z, y);
25 d (f);
28 void b (int *y)
30 (*y)++;
33 void c (int x, int y)
35 if (x == y)
36 ASSERT (0);
39 void d (int x)
43 void
44 testTortureExecute (void)
46 a (0, 0);
47 return;