2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20030401-1.c
blob0cc144a8560574226944f4dd110107e971a9c72a
1 /* Testcase for PR fortran/9974. This was a miscompilation of the g77
2 front-end caused by the jump bypassing optimizations not handling
3 instructions inserted on CFG edges. */
5 extern void abort ();
7 int bar ()
9 return 1;
12 void foo (int x)
14 unsigned char error = 0;
16 if (! (error = ((x == 0) || bar ())))
17 bar ();
18 if (! error)
19 abort ();
22 int main()
24 foo (1);
25 return 0;