diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2020-05-19 22:35:15 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2020-06-04 18:56:37 +0200 |
commit | db7179ec74dda8c92db18399e5041a96ece8d56d (patch) | |
tree | 9e190233460e7b26524e33ef3414731e936ae185 /libgomp | |
parent | 06ec61726d192659cd446e59a91e78745037f0fd (diff) | |
download | gcc-db7179ec74dda8c92db18399e5041a96ece8d56d.zip gcc-db7179ec74dda8c92db18399e5041a96ece8d56d.tar.gz gcc-db7179ec74dda8c92db18399e5041a96ece8d56d.tar.bz2 |
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.
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c index a59047a..13e5ca2 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c @@ -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; diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c index 0ca5990..1b4cf2f 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c @@ -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) |