* gcc.c-torture/execute/unroll-1.c: New test.
authorCatherine Moore <clm@redhat.com>
Thu, 7 Sep 2000 13:12:24 +0000 (13:12 +0000)
committerCatherine Moore <clm@gcc.gnu.org>
Thu, 7 Sep 2000 13:12:24 +0000 (09:12 -0400)
From-SVN: r36236

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

index 17f824a..2758c17 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-07  Catherine Moore  <clm@redhat.com>
+
+        * gcc.c-torture/execute/unroll-1.c: New test.
+
 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
 
        * g++.old-deja/g++.benjamin/13478.C: Put meaningful tags on
diff --git a/gcc/testsuite/gcc.c-torture/execute/unroll-1.c b/gcc/testsuite/gcc.c-torture/execute/unroll-1.c
new file mode 100644 (file)
index 0000000..8812955
--- /dev/null
@@ -0,0 +1,19 @@
+inline int
+f (int x)
+{
+  return (x + 1);
+}
+int
+main (void)
+{
+  int a = 0 ;
+  while ( (f(f(f(f(f(f(f(f(f(f(1))))))))))) + a < 12 )
+    {
+      a++;
+      exit (0);
+    }
+  if (a != 1)
+    abort();
+}