1 /* { dg-do compile } */
2 /* { dg-require-alias "" } */
3 /* { dg-options "-O2 -fcf-protection" } */
4 /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
5 
6 extern int x;
7 
8 static void
9 __attribute__ ((noinline, noclone))
test(int i)10 test (int i)
11 {
12   x = i;
13 }
14 
15 extern __typeof (test) foo __attribute__ ((alias ("test")));
16 
17 void
bar(int i)18 bar (int i)
19 {
20   test (i);
21 }
22