1 /* { dg-do "compile" } */
2
3 void __attribute__ ((target("branch-protection=pac-ret+leaf,branch-protection=none")))
4 foo ()
5 {
6 }
7
8 void __attribute__ ((target("branch-protection=pac-ret,branch-protection=none")))
9 foo2 ()
10 {
11 /* Function call here to make this a non-leaf function, so that it is covered by pac-ret. */
12 foo ();
13 }
14
15 /* { dg-final { scan-assembler-not "\tautiasp\t" } } */
16 /* { dg-final { scan-assembler-not "\tpaciasp\t" } } */