Debian Codegraph @

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

raw
1 // PR middle-end/119613
2 // { dg-do compile { target { musttail && c++11 } } }
3 // { dg-options "-O0" }
4
5 struct S { S () {} };
6 char *foo (S);
7 void bar (int);
8
9 [[gnu::always_inline]] inline char *
10 baz (S x)
11 {
12 unsigned i;
13 &i;
14 bar (i);
15 [[gnu::musttail]] return foo (x);
16 }
17
18 char *
19 qux (S)
20 {
21 [[gnu::musttail]] return baz (S {});
22 }