struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000622-1.c
blobf5796e97e7e66ffcbe5adc392cce617390e27b95
1 /*
2 20000622-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 #pragma disable_warning 88
11 #endif
13 long foo(long a, long b, long c)
15 if (a != 12 || b != 1 || c != 11)
16 ASSERT (0);
17 return 0;
19 long bar (long a, long b)
21 return b;
23 void baz (long a, long b, void *c)
25 long d;
26 d = (long)c;
27 foo(d, bar (a, 1), b);
29 void
30 testTortureExecute (void)
32 baz (10, 11, (void *)12);
33 return;