mirror of git://gcc.gnu.org/git/gcc.git
vector-loop.c: Fix loop initializer.
* testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop initializer. From-SVN: r228737
This commit is contained in:
parent
c22be554a6
commit
058a654b30
|
|
@ -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>
|
2015-10-09 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
* testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
|
* testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ unsigned int n = N;
|
||||||
int
|
int
|
||||||
main (void)
|
main (void)
|
||||||
{
|
{
|
||||||
for (unsigned int i; i < n; ++i)
|
for (unsigned int i = 0; i < n; ++i)
|
||||||
{
|
{
|
||||||
a[i] = i % 3;
|
a[i] = i % 3;
|
||||||
b[i] = i % 5;
|
b[i] = i % 5;
|
||||||
|
|
@ -25,7 +25,7 @@ main (void)
|
||||||
c[i] = a[i] + b[i];
|
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))
|
if (c[i] != (i % 3) + (i % 5))
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue