1 /* { dg-do compile } */
2 /* { dg-options "-O -fstrict-aliasing -fno-tree-sra -fdump-tree-fre1-details" } */
4 /* Should be optimized, propagating &a into (*p)[i]. */
6 /* For this testcase we need TBAA to work. */
13 void foo(double (*q)[4], struct Foo *tmp1)
21 double (*p)[4] = tmp1->data;
26 /* { dg-final { scan-tree-dump "Replaced tmp1_.\\\(D\\\)->data with &a" "fre1" } } */
27 /* { dg-final { cleanup-tree-dump "fre1" } } */