PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr67400-3.c
blobfd2f209696e03258cf5bd3aa3d36064726a1835d
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fno-pic -fno-plt" } */
4 static void
5 bar (void)
9 void *
10 foo (void)
12 return &bar;
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 } } } } */