1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2 -mbranch-protection=standard" } */
4 /* { dg-final { check-function-bodies "**" "" } } */
5
6 void bar (int *);
7 void *addr;
8
9 /*
10 ** foo:
11 ** hint (25|34|38) // (paciasp|bti c|bti jc)
12 ** ...
13 */
14 int foo (int x)
15 {
16 label:
17 addr = &&label;
18 bar (&x);
19 return x;
20 }