aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/alias-access-path-11.c
blob: 45d1b74e6422bade3edf38e406e7a42d22e06ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-fre3" } */
typedef int outerarray[10][10][10];
typedef int innerarray[10][10];
outerarray *barptr;

int
test(int i,int j)
{
  innerarray *innerptr = (innerarray *)barptr;
  (*barptr)[i][2][j]=10;;
  (*innerptr)[3][j]=11;
  return (*barptr)[i][2][j];
}
/* { dg-final { scan-tree-dump-times "return 10" 1 "fre3" { xfail *-*-* } } } */