Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr67400-2.c
blob23dd4bf45939240a94e0a519a83f4e4beb2c1e45
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fno-pic -fno-plt" } */
4 extern void bar (void);
5 extern void *p;
7 void
8 foo (void)
10 p = &bar;
13 /* { dg-final { scan-assembler "mov\(l|q\)\[ \t\]*bar@GOTPCREL" { target { ! ia32 } } } } */
14 /* { dg-final { scan-assembler "movl\[ \t\]*bar@GOT," { target { ia32 && got32x_reloc } } } } */
15 /* { dg-final { scan-assembler-not "mov\(l|q\)\[ \t\]*\\\$bar," { target { ! ia32 } } } } */
16 /* { dg-final { scan-assembler-not "mov\(l|q\)\[ \t\]*\\\$bar," { target { ia32 && got32x_reloc } } } } */