aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/musttail7.c
blob: d17cb71256d770b906121a75a3357070803a62af (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()
{
  [[gnu::musttail]] return f2();
}

void f3()
{
  [[gnu::musttail]] return f();
}