[2/2] OpenACC: Make deep-copy-arrayofstruct.c a libgomp/runtime test

Message ID 20211011134108.129856-2-julian@codesourcery.com
State New
Headers show
Series
  • [1/2] OpenMP: Handle reference-typed struct members
Related show

Commit Message

Julian Brown Oct. 11, 2021, 1:41 p.m.
I noticed that the test in question now compiles properly, and in fact
runs properly too.  Thus it's more useful as a runtime test than a
passing compilation test that otherwise doesn't do much.  This patch
moves it to libgomp.

Tested with offloading to NVPTX and bootstrapped. (I can probably
self-approve as a testsuite-only change, but the patch depends on
previously-posted series).

Julian

2021-10-11  Julian Brown  <julian@codesourcery.com>

gcc/testsuite/
	* libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move test from
	here.

libgomp/
	* testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
	test to here.
---
 .../libgomp.oacc-c-c++-common}/deep-copy-arrayofstruct.c        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename {gcc/testsuite/c-c++-common/goacc => libgomp/testsuite/libgomp.oacc-c-c++-common}/deep-copy-arrayofstruct.c (98%)

-- 
2.29.2

Patch

diff --git a/gcc/testsuite/c-c++-common/goacc/deep-copy-arrayofstruct.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c
similarity index 98%
rename from gcc/testsuite/c-c++-common/goacc/deep-copy-arrayofstruct.c
rename to libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c
index 4247607b61c..a11c64749cc 100644
--- a/gcc/testsuite/c-c++-common/goacc/deep-copy-arrayofstruct.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c
@@ -1,4 +1,4 @@ 
-/* { dg-do compile } */
+/* { dg-do run } */
 
 #include <stdlib.h>
 #include <stdio.h>