summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/m68k/xgot-1.c
blob: f7dd6c939acebb8c8d5761352b09064720352711 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-fpic -mxgot" } */
/* { dg-final { scan-assembler "foo@GOT,\%\[ad\]\[0-7\]" } } */

extern int foo;

int
bar (void)
{
  return foo;
}