1 /* 2 20001203-1.c from the execute part of the gcc torture tests. 3 */ 4 5 #include <testfwk.h> 6 7 #ifdef __SDCC 8 #pragma std_c99 9 #endif 10 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>. 14 */ 15 16 static void foo(void)17foo (void) 18 { 19 struct { 20 long a; 21 char b[1]; 22 } x = { 2, { 0 } }; 23 } 24 25 void testTortureExecute(void)26testTortureExecute (void) 27 { 28 int tmp; 29 foo (); 30 tmp = 1; 31 return; 32 } 33 34