1 /* { dg-do compile } */
2 /* { dg-options { -O -fdump-tree-optimized } } */
8 return *(&a[0][0] + i*8); // a[i][0]
11 struct Foo { double x, y; };
17 return *(&b[0].x + i*2); // b[i].x
20 /* { dg-final { scan-tree-dump "a\\\[.*i.*\\\]\\\[0\\\]" "optimized" } } */
21 /* { dg-final { scan-tree-dump "b\\\[.*i.*\\\].x" "optimized" } } */
22 /* { dg-final { cleanup-tree-dump "optimized" } } */