Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42245-2.c
blobe99fe3759d9eda4ed30afb599ede700b8c7d7ea7
1 /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -fselective-scheduling -fsel-sched-pipelining" } */
4 int
5 strictly_smaller_name (char *s, char *t)
7 int ss, tt;
8 while ((*s != '\0') || (*t != '\0'))
10 if (*s == '\0')
11 ss = '*';
12 else
13 ss = *s++;
14 if (*t != '\0')
15 tt = *t;
16 if (ss == tt)
17 return 0;