1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-alias-vops" } */ struct { int i; int x[128]; int j; } a; int foo(int i) { a.x[i] = 0; return a.x[i]; } /* { dg-final { scan-tree-dump "VDEF" "alias" } } */ /* { dg-final { cleanup-tree-dump "alias" } } */