Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr94417-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-require-effective-target fpic } */
4 /* { dg-options "-O2 -fpic -mcmodel=large -fcf-protection" } */
5 /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
6
7 extern void ext (void);
8
9 __attribute((noclone, noinline))
10 static
11 void
12 foo (void)
13 {
14 ext ();
15 }
16
17 void
18 bar (void)
19 {
20 foo ();
21 }