summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr42245-2.c
blob: 48f9e0eb8537d7f9d2cb9353079e0ead3de6b127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fselective-scheduling -fsel-sched-pipelining" } */

int
strictly_smaller_name (char *s, char *t)
{
  int ss, tt;
  while ((*s != '\0') || (*t != '\0'))
    {
      if (*s == '\0')
        ss = '*';
      else
        ss = *s++;
      if (*t != '\0')
        tt = *t;
      if (ss == tt)
        return 0;
    }
}