OSDN Git Service

* gcc.dg/20000420-1.c: New test.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Apr 2000 17:57:19 +0000 (17:57 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Apr 2000 17:57:19 +0000 (17:57 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33286 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20000420-1.c [new file with mode: 0644]

index 1cda827..c5c35f8 100644 (file)
@@ -1,3 +1,7 @@
+Thu Apr 20 11:57:03 2000  Jeffrey A Law  (law@cygnus.com)
+
+        * gcc.dg/20000420-1.c: New test.
+
 2000-04-20  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.abi/ptrflags.C: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000420-1.c b/gcc/testsuite/gcc.c-torture/compile/20000420-1.c
new file mode 100644 (file)
index 0000000..552f02e
--- /dev/null
@@ -0,0 +1,19 @@
+struct z_candidate { struct z_candidate *next;int viable;};
+int pedantic;
+
+static struct z_candidate *
+splice_viable (cands)
+     struct z_candidate *cands;
+{
+  struct z_candidate **p = &cands;
+
+  for (; *p; )
+    {
+      if (pedantic ? (*p)->viable == 1 : (*p)->viable)
+        p = &((*p)->next);
+      else
+        *p = (*p)->next;
+    }
+
+  return cands;
+}