blob: ed60d0329abe014481892f414097b718359eef0f [file] [log] [blame]
/* Test if -mno-copyrelocs does the right thing. */
/* { dg-do compile } */
/* { dg-options "-O2 -fpie -mno-copyrelocs" } */
extern int glob_a;
int foo ()
{
return glob_a;
}
/* glob_a should always be accessed via GOT */
/* { dg-final { scan-assembler "glob_a\\@GOT" { target { x86_64-*-* } } } } */