From: James Norris Date: Mon, 12 Oct 2015 20:22:30 +0000 (+0000) Subject: vector-loop.c: Fix loop initializer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=058a654b30b40d19db1306daa38df363b9bf8a56;p=gcc.git vector-loop.c: Fix loop initializer. * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop initializer. From-SVN: r228737 --- 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 + + * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop + initializer. + 2015-10-09 David Malcolm * 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 ();