struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20001203-1.c
blob63bc16918c5485416f3c72370bf4430f4ac862c3
1 /*
2 20001203-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 /* Origin: PR c/410 from Jan Echternach
12 <jan.echternach@informatik.uni-rostock.de>,
13 adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
16 static void
17 foo (void)
19 struct {
20 long a;
21 char b[1];
22 } x = { 2, { 0 } };
25 void
26 testTortureExecute (void)
28 int tmp;
29 foo ();
30 tmp = 1;
31 return;