aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/zero-scratch-regs-leafy-1.c
blob: c1a0c31ba1c3701ff1508baddb17dd5d6b1e7c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do run } */
/* { dg-options "-O2 -fzero-call-used-regs=leafy" } */

volatile int result = 0;
int 
__attribute__((noipa))
foo (int x)
{
  return x;
}
int main()
{
  result = foo (2);
  return 0;
}