[openacc, libgomp, testsuite] Fix asserts in non-scalar-data.C
2018-04-18 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.oacc-c++/non-scalar-data.C (reference_data, main):
Fix asserts.
---
libgomp/testsuite/libgomp.oacc-c++/non-scalar-data.C | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
@@ -69,15 +69,15 @@ reference_data (data &d, int &x)
parallel_present (d, x);
}
- assert (d.v = x);
+ assert (d.v == x);
x = 300;
kernels_implicit (d, x);
- assert (d.v = x);
+ assert (d.v == x);
x = 400;
parallel_implicit (d, x);
- assert (d.v = x);
+ assert (d.v == x);
}
int
@@ -99,15 +99,15 @@ main ()
parallel_present (d, x);
}
- assert (d.v = x);
+ assert (d.v == x);
x = 300;
kernels_implicit (d, x);
- assert (d.v = x);
+ assert (d.v == x);
x = 400;
parallel_implicit (d, x);
- assert (d.v = x);
+ assert (d.v == x);
reference_data (d, x);