| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -fcf-protection" } */ |
| 3 |
/* { dg-final { scan-assembler-not "jmp" } } */ |
| 4 |
|
| 5 |
struct ucontext; |
| 6 |
|
| 7 |
extern int (*bar) (struct ucontext *) __attribute__((__indirect_return__)); |
| 8 |
|
| 9 |
int |
| 10 |
foo (struct ucontext *oucp) |
| 11 |
{ |
| 12 |
return bar (oucp); |
| 13 |
} |