struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000717-5.c
blob017c007b047cb5e4b3ca98fb72663a76d41dd731
1 /*
2 20000717-5.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 // TODO: Enable when sdcc supports struct passing!
12 #if 0
13 typedef struct trio { int a, b, c; } trio;
15 int
16 bar (int i, int j, int k, trio t)
18 if (t.a != 1 || t.b != 2 || t.c != 3 ||
19 i != 4 || j != 5 || k != 6)
20 ASSERT (0);
23 int
24 foo (trio t, int i, int j, int k)
26 return bar (i, j, k, t);
28 #endif
30 void
31 testTortureExecute (void)
33 #if 0
34 trio t = { 1, 2, 3 };
36 foo (t, 4, 5, 6);
37 return;
38 #endif