Debian Codegraph @

gcc/testsuite/c-c++-common/pr121159.c

raw
1 /* PR middle-end/121159 */
2 /* { dg-do compile { target musttail } } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-times "foo \\\(\[^\n\r]*\\\); \\\[tail call\\\] \\\[must tail call\\\]" 1 "optimized" } } */
5
6 [[noreturn, gnu::noipa]] void
7 foo (void)
8 {
9 for (;;)
10 ;
11 }
12
13 void
14 bar (void)
15 {
16 [[gnu::musttail]] return foo ();
17 }