struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20030401-1.c
blob051ab16a7e4ba6682f2e5d87fb1589a2f2bc8087
1 /*
2 20030401-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 /* Testcase for PR fortran/9974. This was a miscompilation of the g77
12 front-end caused by the jump bypassing optimizations not handling
13 instructions inserted on CFG edges. */
15 int bar ()
17 return 1;
20 void foo (int x)
22 unsigned char error = 0;
24 if (! (error = ((x == 0) || bar ())))
25 bar ();
26 if (! error)
27 ASSERT (0);
30 void
31 testTortureExecute (void)
33 foo (1);
34 return;