1/* { dg-do compile { target *-*-linux* } } */
2/* { dg-require-effective-target pie_copyreloc } */
3/* { dg-options "-O2 -fpie" } */
4
5/* Uninitialized common symbol with -fpie.  */
6int xxx;
7
8int
9foo ()
10{
11  return xxx;
12}
13
14/* { dg-final { scan-assembler "movl\[ \t\]xxx\\(%rip\\), %eax" { target { ! ia32 } } } } */
15/* { dg-final { scan-assembler-not "xxx@GOTPCREL" { target { ! ia32 } } } } */
16