1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-fre3" } */ 3 typedef int outerarray[10][10][10]; 4 typedef int innerarray[10][10]; 5 outerarray *barptr; 6 7 int test(int i,int j)8test(int i,int j) 9 { 10 innerarray *innerptr = (innerarray *)barptr; 11 (*barptr)[i][2][j]=10;; 12 (*innerptr)[3][j]=11; 13 return (*barptr)[i][2][j]; 14 } 15 /* { dg-final { scan-tree-dump-times "return 10" 1 "fre3" { xfail *-*-* } } } */ 16