PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr86560-4.c
bloba623e3dcbebe3a9a6c252ad9ca1170b00a4baf75
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcf-protection" } */
3 /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
5 struct ucontext;
7 extern int (*bar) (struct ucontext *)
8 #ifdef __has_attribute
9 # if __has_attribute (indirect_return)
10 __attribute__((__indirect_return__))
11 # endif
12 #endif
15 extern int res;
17 void
18 foo (struct ucontext *oucp)
20 res = bar (oucp);