Debian Codegraph @

gcc/testsuite/c-c++-common/zero-scratch-regs-leafy-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 #include <assert.h>
5 int result = 0;
6
7 int
8 __attribute__((noipa))
9 __attribute__ ((zero_call_used_regs("leafy")))
10 foo1 (int x)
11 {
12 return (x + 1);
13 }
14
15 int
16 __attribute__((noipa))
17 __attribute__ ((zero_call_used_regs("leafy")))
18 foo2 (int x)
19 {
20 return foo1 (x + 2);
21 }