libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56727-2.c
blob77fdf4bc3503cb4bee7c850bc768b1440644895a
1 /* { dg-do compile { target fpic } } */
2 /* { dg-options "-O2 -fPIC" } */
3 /* { dg-require-alias "" } */
5 __attribute__((noinline, noclone))
6 void f (short b)
8 __builtin_setjmp (0); /* Prevent tailcall */
9 f (0);
12 static void g (short) __attribute__ ((alias ("f")));
14 void h ()
16 g (0);
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 } } } } */