From: Chung-Lin Tang Date: Fri, 25 Jun 2021 16:42:58 +0000 (+0800) Subject: testsuite/101114: Adjust libgomp.c-c++-common/struct-elem-5.c testcase X-Git-Tag: basepoints/gcc-13~6500 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0672017370b9a9362fda52ecffe33d1c9c41829;p=thirdparty%2Fgcc.git testsuite/101114: Adjust libgomp.c-c++-common/struct-elem-5.c testcase The dg-shouldfail testcase libgomp.c-c++-common/struct-elem-5.c does not properly fail for non-shared address space offloading. Adjust testcase to limit testing only for "target offload_device_nonshared_as". libgomp/ChangeLog: PR testsuite/101114 * testsuite/libgomp.c-c++-common/struct-elem-5.c: Add "target offload_device_nonshared_as" condition for enabling test. --- diff --git a/libgomp/testsuite/libgomp.c-c++-common/struct-elem-5.c b/libgomp/testsuite/libgomp.c-c++-common/struct-elem-5.c index 814c30120e5b..31a2fa5e8cfe 100644 --- a/libgomp/testsuite/libgomp.c-c++-common/struct-elem-5.c +++ b/libgomp/testsuite/libgomp.c-c++-common/struct-elem-5.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target offload_device_nonshared_as } } */ struct S {