(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr56727-2.c
       1  /* { dg-do compile { target fpic } } */
       2  /* { dg-options "-O2 -fPIC" } */
       3  /* { dg-require-alias "" } */
       4  
       5  __attribute__((noinline, noclone))
       6  void f (short b)
       7  {
       8    __builtin_setjmp (0);  /* Prevent tailcall */
       9    f (0);
      10  }
      11  
      12  static void g (short) __attribute__ ((alias ("f")));
      13  
      14  void h ()
      15  {
      16    g (0);
      17  }
      18  
      19  /* { dg-final { scan-assembler "@(PLT|plt)" { target i?86-*-* x86_64-*-* } } } */
      20  /* { dg-final { scan-assembler "@(PLT|plt)" { target { powerpc*-*-linux* && ilp32 } } } } */
      21  /* { dg-final { scan-assembler "(bl f\n\\s*nop)|(bl f@notoc)" { target { powerpc*-*-linux* && lp64 } } } } */