1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcf-protection=check" } */
3 /* { dg-final { scan-assembler-not "endbr" } } */
4
5 extern int x;
6
7 static void
8 __attribute__ ((noinline, noclone))
9 test (int i)
10 {
11 x = i;
12 }
13
14 void
15 bar (int i)
16 {
17 test (i);
18 }