struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20001101.c
blob108f0d87b74f9341689274280c4504784db6d230
1 /*
2 20001101-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 88
10 #endif
12 typedef struct
14 unsigned int unchanging : 1;
15 } struc, *rtx;
17 rtx dummy ( int *a, rtx *b)
19 *a = 1;
20 *b = (rtx)7;
21 return (rtx)1;
24 void bogus (rtx insn, rtx thread, rtx delay_list)
26 rtx new_thread;
27 int must_annul;
29 delay_list = dummy ( &must_annul, &new_thread);
30 if (delay_list == 0 && new_thread )
32 thread = new_thread;
34 if (delay_list && must_annul)
35 insn->unchanging = 1;
36 if (new_thread != thread )
37 ASSERT (0);
40 void
41 testTortureExecute (void)
43 struc baz;
44 bogus (&baz, (rtx)7, 0);
45 return;