]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/101114: Adjust libgomp.c-c++-common/struct-elem-5.c testcase
authorChung-Lin Tang <cltang@codesourcery.com>
Fri, 25 Jun 2021 16:42:58 +0000 (00:42 +0800)
committerChung-Lin Tang <cltang@codesourcery.com>
Fri, 25 Jun 2021 16:46:11 +0000 (00:46 +0800)
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.

libgomp/testsuite/libgomp.c-c++-common/struct-elem-5.c

index 814c30120e5bc60322cb6af5b91dc3115e6b3c99..31a2fa5e8cfe00ba51bb447c0325253f86680352 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target offload_device_nonshared_as } } */
 
 struct S
 {