summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20001027-1.c
blob: 89ac9a024dd664b72c2c2fc1dcf526bc4204faf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
int x,*p=&x;

int main()
{
  int i=0;
  x=1;
  p[i]=2;
  if (x != 2)
    abort ();
  exit (0);
}