(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
pr85620-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fcf-protection" } */
       3  /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
       4  /* { dg-final { scan-assembler-not "jmp" } } */
       5  
       6  struct ucontext;
       7  
       8  extern int bar (struct ucontext *) __attribute__((__indirect_return__));
       9  
      10  int
      11  foo (struct ucontext *oucp)
      12  {
      13    return bar (oucp);
      14  }