]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add tests missing from previous commit.
authorAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 14 Jan 2010 10:38:14 +0000 (13:38 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 14 Jan 2010 10:38:14 +0000 (13:38 +0300)
PR middle-end/42245
* gcc.dg/pr42245.c: New.
* gcc.dg/pr42245-2.c: New.

From-SVN: r155891

gcc/testsuite/gcc.dg/pr42245-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr42245.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/pr42245-2.c b/gcc/testsuite/gcc.dg/pr42245-2.c
new file mode 100644 (file)
index 0000000..48f9e0e
--- /dev/null
@@ -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;
+    }
+}
+
diff --git a/gcc/testsuite/gcc.dg/pr42245.c b/gcc/testsuite/gcc.dg/pr42245.c
new file mode 100644 (file)
index 0000000..98dd1d0
--- /dev/null
@@ -0,0 +1,30 @@
+/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
+/* { dg-options "-O2 -fselective-scheduling -fsel-sched-pipelining" } */
+
+extern int N_words;
+typedef struct DIS_node_struct DIS_node;
+typedef struct CON_list_struct CON_list;
+
+struct DIS_node_struct
+{
+  CON_list *cl;
+};
+
+void
+build_DIS_CON_tree (void)
+{
+  int w;
+  DIS_node *dnroot, *dn;
+  CON_list *child, *xchild;
+  for (w = 0; w < N_words; w++)
+    {
+      if (dnroot == ((void *) 0))
+        {
+          dnroot = dn;
+          for (child = dn->cl; child != ((void *) 0); child = xchild)
+            {
+            }
+        }
+    }
+}
+