mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 19:15:18 +08:00
* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.
From-SVN: r68652
This commit is contained in:
parent
cef1ccd6ff
commit
81a6489eb6
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user