* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.
authorUlrich Weigand <uweigand@de.ibm.com>
Sat, 28 Jun 2003 21:30:30 +0000 (21:30 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Sat, 28 Jun 2003 21:30:30 +0000 (21:30 +0000)
From-SVN: r68652

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/multi-ix.c

index 3af77db..5226824 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.
+
 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.old-deja/g++.robertl/eb133.C: Set expected line number.
index 71cdcb1..65e9438 100644 (file)
@@ -145,7 +145,7 @@ void s(int n, ...)
   va_list list;
 
   va_start (list, n);
-  while (--n)
+  while (n--)
     {
       int *a = va_arg (list, int *);
       a[0] = n;
@@ -158,7 +158,7 @@ void z(int n, ...)
   va_list list;
 
   va_start (list, n);
-  while (--n)
+  while (n--)
     {
       int *a = va_arg (list, int *);
       bzero (a, sizeof (l));
@@ -171,7 +171,7 @@ void c(int n, ...)
   va_list list;
 
   va_start (list, n);
-  while (--n)
+  while (n--)
     {
       int *a = va_arg (list, int *);
       if (a[n] != n)