PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-7.c
blob7023818b17a418a4c67cfa212f360a8b5119ff2f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */
3 int
4 foo (int *array)
6 if (array[1] != 0)
7 return array[1];
8 return 0;
10 /* We should eliminate one load. */
11 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre1"} } */