diff options
author | James Norris <jnorris@codesourcery.com> | 2015-10-12 20:22:30 +0000 |
---|---|---|
committer | James Norris <jnorris@gcc.gnu.org> | 2015-10-12 20:22:30 +0000 |
commit | 058a654b30b40d19db1306daa38df363b9bf8a56 (patch) | |
tree | 8b6fca1a4827f10750176f47b1d0b7da14ffca78 /libgomp | |
parent | c22be554a6d49c27659afeeb71c78f574b8a9190 (diff) | |
download | gcc-058a654b30b40d19db1306daa38df363b9bf8a56.zip gcc-058a654b30b40d19db1306daa38df363b9bf8a56.tar.gz gcc-058a654b30b40d19db1306daa38df363b9bf8a56.tar.bz2 |
vector-loop.c: Fix loop initializer.
* testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
initializer.
From-SVN: r228737
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 7440b3e..aa03f82 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 cc915a9..8a51ee3 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 (); |