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

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

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

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