1 /* 2 20000722-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 // TODO: Enable whens dcc supports this! 12 #if 0 13 struct s { char *p; int t; }; 14 15 extern void bar (void); 16 extern void foo (struct s *); 17 #endif 18 19 void testTortureExecute(void)20testTortureExecute (void) 21 { 22 #if 0 23 bar (); 24 bar (); 25 return; 26 #endif 27 } 28 29 #if 0 30 void 31 bar (void) 32 { 33 foo (& (struct s) { "hi", 1 }); 34 } 35 #endif 36 37 #if 0 38 void foo (struct s *p) 39 { 40 if (p->t != 1) 41 ASSERT (0); 42 p->t = 2; 43 } 44 #endif 45