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

extern int foo;

int
bar (void)
{
  return foo;
}