PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr32219-9.c
blob8c218266359a9f5f03566576ace1382e291cc029
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-require-effective-target pie_copyreloc } */
3 /* { dg-options "-O2 -fpie" } */
5 /* Uninitialized common symbol with -fpie. */
6 int xxx;
8 int
9 foo ()
11 return xxx;
14 /* { dg-final { scan-assembler "movl\[ \t\]xxx\\(%rip\\), %eax" { target { ! ia32 } } } } */
15 /* { dg-final { scan-assembler-not "xxx@GOTPCREL" { target { ! ia32 } } } } */