111
|
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 {
|
131
|
8 __builtin_setjmp (0); /* Prevent tailcall */
|
111
|
9 f (0);
|
|
10 }
|
|
11
|
|
12 static void g (short) __attribute__ ((alias ("f")));
|
|
13
|
|
14 void h ()
|
|
15 {
|
|
16 g (0);
|
|
17 }
|
131
|
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" { target { powerpc*-*-linux* && lp64 } } } } */
|