diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2003-06-28 21:30:30 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2003-06-28 21:30:30 +0000 |
commit | 81a6489eb6ac5528b0939e18fadf406a82b33c54 (patch) | |
tree | 3ff830466287f05d85f3b859d29ddfd0a20305d1 /gcc | |
parent | cef1ccd6ffb6dabae33db7b8fed73895159615fe (diff) | |
download | gcc-81a6489eb6ac5528b0939e18fadf406a82b33c54.zip gcc-81a6489eb6ac5528b0939e18fadf406a82b33c54.tar.gz gcc-81a6489eb6ac5528b0939e18fadf406a82b33c54.tar.bz2 |
* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.
From-SVN: r68652
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/multi-ix.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3af77db..5226824 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.c-torture/execute/multi-ix.c b/gcc/testsuite/gcc.c-torture/execute/multi-ix.c index 71cdcb1..65e9438 100644 --- a/gcc/testsuite/gcc.c-torture/execute/multi-ix.c +++ b/gcc/testsuite/gcc.c-torture/execute/multi-ix.c @@ -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) |