PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56727-2.c
blobc54369ed25ec1530ee1fcec35cc78ce3cde278c6
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" { target { powerpc*-*-linux* && lp64 } } } } */