]> gcc.gnu.org Git - gcc.git/commitdiff
* 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 3af77db3dcb9f8757efa92eb10c79dcf520ac59d..5226824c06bef2de95e37f976ef7d0396214994d 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 71cdcb15988e254ed6164b7e9fba0210dbb1f4d2..65e9438312bae52aab6656751ac341b327d301cd 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)
This page took 0.106962 seconds and 5 git commands to generate.