2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44539.c
blob9cfff7a3ae53af93e6e796e13c97c7ed1c506e02
1 /* PR tree-optimization/44539 */
2 /* { dg-do compile } */
3 /* { dg-options "-ftracer -freorder-blocks -O2" } */
5 void bar (int file);
6 extern int baz (void);
8 void noret1 ()
10 bar (0);
11 __builtin_exit (0);
14 void noret2 ()
16 __builtin_exit (0);
19 void bar (int i)
21 if (baz ())
22 noret1 (i);
25 void foo (int i)
27 if (~i) bar (i);
28 i ? noret1 () : noret2 ();