diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr32219-9.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr32219-9.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr32219-9.c b/gcc/testsuite/gcc.target/i386/pr32219-9.c new file mode 100644 index 00000000000..8c218266359 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr32219-9.c @@ -0,0 +1,15 @@ +/* { dg-do compile { target *-*-linux* } } */ +/* { dg-require-effective-target pie_copyreloc } */ +/* { dg-options "-O2 -fpie" } */ + +/* Uninitialized common symbol with -fpie. */ +int xxx; + +int +foo () +{ + return xxx; +} + +/* { dg-final { scan-assembler "movl\[ \t\]xxx\\(%rip\\), %eax" { target { ! ia32 } } } } */ +/* { dg-final { scan-assembler-not "xxx@GOTPCREL" { target { ! ia32 } } } } */ |