1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fno-omit-frame-pointer -fno-inline --save-temps" } */
3
4 void
5 leaf (void)
6 {
7 int a = 0;
8 }
9
10 __attribute__ ((optimize("omit-frame-pointer")))
11 void
12 non_leaf_1 (void)
13 {
14 leaf ();
15 }
16
17 __attribute__ ((optimize("omit-frame-pointer")))
18 void
19 non_leaf_2 (void)
20 {
21 leaf ();
22 }
23
24 /* { dg-final { scan-assembler-times "str\tx30, \\\[sp, -\[0-9\]+\\\]!" 2 } } */
25