aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/musttail18.c
blob: ab608871fd08c9244a998c8f654a0a19664a7387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target musttail } } */
/* { dg-additional-options "-fdelayed-branch" { target sparc*-*-* } } */

void __attribute__((noipa)) f() {}

void f2()
{
  __attribute__((__musttail__)) return f2();
}

void f3()
{
  __attribute__((__musttail__)) return f();
}