Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr67400-3.c

raw
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fno-pic -fno-plt" } */
3
4 static void
5 bar (void)
6 {
7 }
8
9 void *
10 foo (void)
11 {
12 return &bar;
13 }
14
15 /* { dg-final { scan-assembler "mov\(l|q\)\[ \t\]*\\\$bar," } } */
16 /* { dg-final { scan-assembler-not "mov\(l|q\)\[ \t\]*bar@GOTPCREL" { target { ! ia32 } } } } */
17 /* { dg-final { scan-assembler-not "movl\[ \t\]*bar@GOT," { target { ia32 && got32x_reloc } } } } */