tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant indices into an array...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ccp-26.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-forwprop1" } */
3
4 int a[256];
5 int foo(int i)
6 {
7 return (a + 1)[i];
8 }
9
10 /* { dg-final { scan-tree-dump "= a\\\[D\\\." "forwprop1" } } */
11 /* { dg-final { cleanup-tree-dump "forwprop1" } } */