struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000419-1.c
blob49f51b67bf2e475a719a6bf2c90d07b2cb11630d
1 /*
2 20000419-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 passing of structs!
12 #if 0
13 struct foo { int a, b, c; };
15 void
16 brother (int a, int b, int c)
18 if (a)
19 ASSERT (0);
22 void
23 sister (struct foo f, int b, int c)
25 brother ((f.b == b), b, c);
27 #endif
29 void
30 testTortureExecute (void)
32 #if 0
33 struct foo f = { 7, 8, 9 };
34 sister (f, 1, 2);
35 return;
36 #endif