summaryrefslogtreecommitdiff
path: root/support/regression/gte/alias-2.c
blob: 6aeb0c23e865dbdfacdac6dd5d3529d0a4aa441c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-require-alias "" } */
/* { dg-skip-if "BSS alias" { powerpc-ibm-aix* } } */
int a[10]={};
extern int b[10] __attribute__ ((alias("a")));
int off;
main()
{
  b[off]=1;
  a[off]=2;
  if (b[off]!=2)
   __builtin_abort ();
  return 0;
}