blob: 4f669a029e77b2d0874ded23d6001adb1a8f2848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* { dg-do compile } */
/* { dg-options "-mabi=lp64d -O0 -fpic -fno-plt -mno-explicit-relocs" } */
/* { dg-final { scan-assembler "test:.*la\.global\t.*g\n\tjirl" } } */
/* { dg-final { scan-assembler "test1:.*la\.global\t.*f\n\tjirl" } } */
/* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */
extern void g (void);
void
f (void)
{}
static void
l (void)
{}
void
test (void)
{
g ();
}
void
test1 (void)
{
f ();
}
void
test2 (void)
{
l ();
}
|