PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr21458.c
blob97d17f21cfbbaf2f4fd5aba23574eefe4dc928b1
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-vrp1" } */
4 extern void g (void);
5 extern void bar (int);
7 int
8 foo (int a)
10 int i;
12 for (i = 1; i < 100; i++)
14 if (i)
15 g ();
19 /* { dg-final { scan-tree-dump-times "Folding predicate.*to 1" 1 "vrp1" } } */