Commit 62eeb367 by Thomas Schwinge

Fix 'sizeof' usage in 'libgomp.oacc-c-c++-common/deep-copy-{7,8}.c'

	libgomp/
	* testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
	usage.
	* testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.

(cherry picked from commit db7179ec74dda8c92db18399e5041a96ece8d56d)
parent 125621f5
......@@ -38,7 +38,7 @@ main ()
assert (v.b[i] == v.a + i);
assert (!acc_is_present (&v, sizeof (v)));
assert (!acc_is_present (v.b, sizeof (int *) * n));
assert (!acc_is_present (v.b, sizeof (int) * n));
}
return 0;
......
......@@ -41,9 +41,9 @@ main ()
assert (v.b[i] == v.a + i);
assert (acc_is_present (&v, sizeof (v)));
assert (!acc_is_present (v.b, sizeof (int *) * n));
assert (!acc_is_present (v.c, sizeof (int *) * n));
assert (!acc_is_present (v.d, sizeof (int *) * n));
assert (!acc_is_present (v.b, sizeof (int) * n));
assert (!acc_is_present (v.c, sizeof (int) * n));
assert (!acc_is_present (v.d, sizeof (int) * n));
}
#pragma acc exit data copyout(v)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment