diff options
author | jnorris <jnorris@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-12 20:22:30 +0000 |
---|---|---|
committer | jnorris <jnorris@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-12 20:22:30 +0000 |
commit | 140722d9d2d574574c982f4616a80bb0ef766276 (patch) | |
tree | 8b6fca1a4827f10750176f47b1d0b7da14ffca78 /libgomp | |
parent | f37b104aa2d2890c48a941033ab8dfd4131bd7da (diff) | |
download | gcc-140722d9d2d574574c982f4616a80bb0ef766276.tar.gz |
* testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
initializer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228737 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 7440b3e7ba6..aa03f82d2ee 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2015-10-12 James Norris <jnorris@codesourcery.com> + + * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop + initializer. + 2015-10-09 David Malcolm <dmalcolm@redhat.com> * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp, diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c index cc915a96f2c..8a51ee36618 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c @@ -12,7 +12,7 @@ unsigned int n = N; int main (void) { - for (unsigned int i; i < n; ++i) + for (unsigned int i = 0; i < n; ++i) { a[i] = i % 3; b[i] = i % 5; @@ -25,7 +25,7 @@ main (void) c[i] = a[i] + b[i]; } - for (unsigned int i; i < n; ++i) + for (unsigned int i = 0; i < n; ++i) if (c[i] != (i % 3) + (i % 5)) abort (); |