PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr65248-2.c
blobaf264f36a14e5babf250d802ea268b66ef871bdf
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fpic" } */
4 /* Weak common symbol with -fpic. */
5 __attribute__((weak, visibility("protected")))
6 int xxx;
8 int
9 foo ()
11 return xxx;
14 /* { dg-final { scan-assembler-not "xxx\\(%rip\\)" { target { ! ia32 } } } } */
15 /* { dg-final { scan-assembler "xxx@GOTPCREL" { target { ! ia32 } } } } */
16 /* { dg-final { scan-assembler-not "xxx@GOTOFF" { target ia32 } } } */
17 /* { dg-final { scan-assembler "xxx@GOT\\(" { target ia32 } } } */