Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / ssa-ccp-10.c
blob7177d991e24dd99d8fbc21af2f2d0a55ddebf743
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-fab" } */
4 /* Check that we fold strlen of equally long strings, and that we do not
5 fail to terminate when there is a nontrivial cycle in the corresponding
6 ssa graph. */
8 extern __SIZE_TYPE__ strlen (const char *);
10 void foo(int i)
12 char *s = "abcde";
14 if (i)
16 s = "defgh";
17 goto middle;
20 start:
22 bla ();
24 middle:
26 if (bla ())
27 goto start;
29 bar (strlen (s));
32 /* There should be no calls to strlen. */
33 /* { dg-final { scan-tree-dump-times "strlen" 0 "fab"} } */
34 /* { dg-final { cleanup-tree-dump "fab" } } */