struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20030914-2.c
blobd79be2f60295b2a28cb8cde53d4f6fc52bcfb8b3
1 /*
2 20030914-2.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 assignment!
12 #if 0
13 /* On IRIX 6, PA is passed partially in registers and partially on the
14 stack. We therefore have two potential uses of pretend_args_size:
15 one for the partial argument and one for the varargs save area.
16 Make sure that these uses don't conflict. */
18 struct s { int i[18]; };
20 int f (struct s pa, int pb, ...)
22 return pb;
25 struct s gs;
26 #endif
28 void
29 testTortureExecute (void)
31 #if 0
32 if (f (gs, 0x1234) != 0x1234)
33 ASSERT (0);
35 return;
36 #endif