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