(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
branch-protection-attr-2.c
       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" } } */