aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/musttail1.c
blob: 51549672e02a62d0632359c1ae324f02fe37426f (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*-*-* } } */

int __attribute__((noinline,noclone,noipa))
callee (int i)
{
  return i * i;
}

int __attribute__((noinline,noclone,noipa))
caller (int i)
{
  [[gnu::musttail]] return callee (i + 1);
}