Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-1.c
blob7b07d7f488f4fa6f69abbf4636536d56b9a6da39
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-forwprop1" } */
4 /* We should be able to optimize this to b->t[i] = 1 during
5 early optimizations. */
7 struct a
9 int t[10];
12 void f(struct a * b, __SIZE_TYPE__ i)
14 int *c = b->t;
15 c[i] = 1;
18 /* { dg-final { scan-tree-dump-times "t\\\[i.*\\\].* = 1;" 1 "forwprop1" } } */
19 /* { dg-final { cleanup-tree-dump "forwprop1" } } */