Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-2.c
blob2aefb9ace63a2fb7ee4d6948c0fb561fb343ec2b
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 char t[10];
12 struct a *b;
14 void f(__SIZE_TYPE__ i)
16 char *c = b->t;
17 c[i] = 1;
20 /* { dg-final { scan-tree-dump-times "t\\\[i.*\\\].* = 1;" 1 "forwprop1" } } */
21 /* { dg-final { cleanup-tree-dump "forwprop?" } } */