OSDN Git Service

Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2000 05:39:32 +0000 (05:39 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2000 05:39:32 +0000 (05:39 +0000)
        * gcc.c-torture/execute/20000205-1.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31815 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ec762fd..2186c29 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-05  Alan Modra  <alan@SPRI.Levels.UniSA.Edu.Au>
+
+       * gcc.c-torture/execute/20000205-1.c: New.
+
 2000-02-03  Nathan Sidwell  <nathan@acm.org>
 
        * g++.old-deja/g++.jason/cast3.C: Return void.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000205-1.c b/gcc/testsuite/gcc.c-torture/execute/20000205-1.c
new file mode 100644 (file)
index 0000000..b605b84
--- /dev/null
@@ -0,0 +1,17 @@
+static int f (int a)
+{
+  if (a == 0)
+    return 0;
+  do
+    if (a & 128)
+      return 1;
+  while (f (0));
+  return 0;
+}
+
+int main(void)
+{
+  if (f (~128))
+    abort ();
+  exit (0);
+}