blob: ed60d0329abe014481892f414097b718359eef0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* 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-*-* } } } } */
|