* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.

From-SVN: r68652
This commit is contained in:
Ulrich Weigand 2003-06-28 21:30:30 +00:00 committed by Ulrich Weigand
parent cef1ccd6ff
commit 81a6489eb6
2 changed files with 7 additions and 3 deletions

View 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.

View 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)