x86: Disable sibcall if indirect_return attribute doesn't match
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr85620-5.c
blob04537702d091ed9cf4b16187dda0c1d032877d76
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcf-protection" } */
3 /* { dg-final { scan-assembler-not "jmp" } } */
5 struct ucontext;
7 extern int (*bar) (struct ucontext *) __attribute__((__indirect_return__));
9 int
10 foo (struct ucontext *oucp)
12 return bar (oucp);