aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr121159.c
blob: c8c5d672958e8ab19193f718bdc42b2a22434442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/121159 */
/* { dg-do compile { target musttail } } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* { dg-final { scan-tree-dump-times "foo \\\(\[^\n\r]*\\\); \\\[tail call\\\] \\\[must tail call\\\]" 1 "optimized" } } */
		
[[noreturn, gnu::noipa]] void
foo (void)
{
  for (;;)
    ;
}

void
bar (void)
{
  [[gnu::musttail]] return foo ();
}