Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr119614.C

raw
1 // PR tree-optimization/119614
2 // { dg-do compile { target musttail } }
3 // { dg-options "-O2" }
4
5 struct S {} b;
6 char *foo ();
7 int e, g;
8 void bar ();
9 void corge (S);
10
11 [[gnu::noinline]] char *
12 baz ()
13 {
14 bar ();
15 return 0;
16 }
17
18 const char *
19 qux ()
20 {
21 if (e)
22 {
23 S a = b;
24 corge (a);
25 if (g)
26 return 0;
27 [[gnu::musttail]] return baz ();
28 }
29 return foo ();
30 }