@@ -1,3 +1,8 @@
+2017-04-12 Thomas Schwinge <thomas@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Respect that
+ "char" might mean "unsigned char".
+
2017-04-07 Thomas Schwinge <thomas@codesourcery.com>
* testsuite/libgomp.oacc-c++/template-reduction.C: Update.
@@ -143,28 +143,28 @@ main (int argc, char *argv[])
#pragma acc parallel default (present)
{
for (int j = 0; j < N; ++j)
- a[j] = j - 1;
+ a[j] = j + 1;
}
#pragma acc update host (a)
for (i = 0; i < N; ++i)
{
- if (a[i] != i - 1)
+ if (a[i] != i + 1)
abort ();
}
#pragma acc kernels default (present)
{
for (int j = 0; j < N; ++j)
- a[j] = j - 2;
+ a[j] = j + 2;
}
#pragma acc exit data copyout (a)
for (i = 0; i < N; ++i)
{
- if (a[i] != i - 2)
+ if (a[i] != i + 2)
abort ();
}