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