struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-931005-1.c
blobc14656714b968315e34f47b022e8911ff79fc7eb
1 /*
2 931005-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 struct return!
12 #if 0
13 typedef struct
15 char x;
16 } T;
19 f (s1)
20 T s1;
22 T s1a;
23 s1a.x = s1.x;
24 return s1a;
26 #endif
28 void
29 testTortureExecute (void)
31 #if 0
32 T s1a, s1b;
33 s1a.x = 100;
34 s1b = f (s1a);
35 if (s1b.x != 100)
36 ASSERT (0);
37 return;
38 #endif