Fix PR48484
[official-gcc.git] / gcc / testsuite / gcc.dg / 20001108-1.c
blob682257fdb0951c90096aa9db32939b032f7f1168
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fomit-frame-pointer" } */
4 extern void abort (void);
5 extern void exit (int);
7 void die (long) __attribute__ ((noreturn));
9 void die (long e)
11 abort ();
12 for (;;);
15 long foo (double i)
17 if (i != 2.0)
18 abort ();
19 return 26;
22 long bar (long i, double x)
24 if (x < 0) die (1);
25 return foo (x);
28 main()
30 if (bar (0, 2.0) != 26)
31 abort ();
32 exit (0);