Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcf-protection" } */
3 /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
4
5 struct ucontext;
6
7 typedef int (*bar_p) (struct ucontext *)
8 __attribute__((__indirect_return__));
9
10 extern int res;
11
12 void
13 foo (bar_p bar, struct ucontext *oucp)
14 {
15 res = bar (oucp);
16 }