struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-930713-1.c
blobbfca543dc8f64702ddb10ed159eaa85d6fd5445b
1 /*
2 930713-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 // Todo: Enable when sdcc supports returning struct!
12 #if 0
13 typedef struct
15 char x;
16 } T;
19 f (s1)
20 T s1;
22 T s1a;
23 s1a.x = 17;
24 return s1a;
26 #endif
28 void
29 testTortureExecute (void)
31 #if 0
32 T s1a, s1b;
33 s1a.x = 13;
34 s1b = f (s1a);
35 if (s1a.x != 13 || s1b.x != 17)
36 ASSERT (0);
37 return;
38 #endif