Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / zero-scratch-regs-leafy-2.c
blobd450620c1fcfe313647bc436791542724d7afa5a
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 #include <assert.h>
5 int result = 0;
7 int
8 __attribute__((noipa))
9 __attribute__ ((zero_call_used_regs("leafy")))
10 foo1 (int x)
12 return (x + 1);
15 int
16 __attribute__((noipa))
17 __attribute__ ((zero_call_used_regs("leafy")))
18 foo2 (int x)
20 return foo1 (x + 2);