Add second, reversed loop to testcase.
authorNick Clifton <nickc@cygnus.com>
Fri, 30 Jun 2000 16:46:28 +0000 (16:46 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Fri, 30 Jun 2000 16:46:28 +0000 (16:46 +0000)
From-SVN: r34812

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20000629-1.c

index 68dd0cf..ed02280 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-30  Nick Clifton  <nickc@cygnus.com>
+
+       * gcc.c-torture/compile/20000629-1.c: Add second, reversed, loop
+       to test case.
+
 2000-06-30  Catherine Moore  <clm@cygnus.com>
 
        * gcc.c-torture/execute/align-1.c: New test.
index 0ed65a6..58b522e 100644 (file)
@@ -14,3 +14,15 @@ foo (struct a * b)
       b++;
     }
 }
+
+void
+bar (struct a * b)
+{
+  int i;
+
+  for (i = 0; i < 1000; i++)
+    {
+      b->x = b;
+      b--;
+    }
+}