summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr42245-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr42245-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr42245-2.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr42245-2.c b/gcc/testsuite/gcc.dg/pr42245-2.c
new file mode 100644
index 00000000000..48f9e0eb853
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr42245-2.c
@@ -0,0 +1,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;
+ }
+}
+