]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr44539.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr44539.c
1 /* PR tree-optimization/44539 */
2 /* { dg-do compile } */
3 /* { dg-options "-ftracer -freorder-blocks -O2" } */
4
5 void bar (int file);
6 extern int baz (void);
7
8 void noret1 ()
9 {
10 bar (0);
11 __builtin_exit (0);
12 }
13
14 void noret2 ()
15 {
16 __builtin_exit (0);
17 }
18
19 void bar (int i)
20 {
21 if (baz ())
22 noret1 (i);
23 }
24
25 void foo (int i)
26 {
27 if (~i) bar (i);
28 i ? noret1 () : noret2 ();
29 }