aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/zero-scratch-regs-leafy-2.c
blob: d450620c1fcfe313647bc436791542724d7afa5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O2" } */

#include <assert.h>
int result = 0;

int 
__attribute__((noipa))
__attribute__ ((zero_call_used_regs("leafy")))
foo1 (int x)
{
  return (x + 1);
}

int 
__attribute__((noipa))
__attribute__ ((zero_call_used_regs("leafy")))
foo2 (int x)
{
  return foo1 (x + 2);
}