struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000707-1.c
blob1f618d94ea8ff4139a818e427fa810e0ea1bb71a
1 /*
2 20000707-1.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 struct baz {
14 int a, b, c;
17 void
18 foo (int a, int b, int c)
20 if (a != 4)
21 ASSERT (0);
24 void
25 bar (struct baz x, int b, int c)
27 foo (x.b, b, c);
29 #endif
31 void
32 testTortureExecute (void)
34 #if 0
35 struct baz x = { 3, 4, 5 };
36 bar (x, 1, 2);
37 return;
38 #endif