blob: 4f04ba0e49141425fe412ba848220a58148b4023 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fcf-protection" } */
/* { dg-additional-options "-fno-PIE" { target ia32 } } */
/* { dg-final { scan-assembler "jmp" } } */
struct ucontext;
extern int bar (struct ucontext *) __attribute__((__indirect_return__));
__attribute__((__indirect_return__))
int
foo (struct ucontext *oucp)
{
return bar (oucp);
}