Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / 20031113-1.c
blob865915f4fb3a85044359b9f7678c9258e3a1cc8e
1 /* PR optimization/12640
3 We used to get into an infinite loop while trying to
4 figure out `strlen (resultString)'. This showed up as
5 a stack overflow while compiling tk. */
7 /* { dg-do compile } */
8 /* { dg-options "-O1" } */
10 extern __SIZE_TYPE__ strlen (const char *);
12 int i;
14 static void
15 SendEventProc (char *resultString)
17 char *p;
19 resultString = "";
20 while (*p == '-')
22 if (p[2] == ' ')
24 resultString = p + 3;
27 for (;;)
29 i = strlen (resultString) + 1;