aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/musttail15.c
blob: 2addc971922c3314afacc064067fad0b6a43fc2e (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)
{
  __attribute__((musttail)) return callee (i + 1);
}