openmp: Fix libgomp.c++ testsuite errors for non-offload configs
authorChung-Lin Tang <cltang@codesourcery.com>
Thu, 9 Dec 2021 16:38:20 +0000 (00:38 +0800)
committerChung-Lin Tang <cltang@codesourcery.com>
Thu, 9 Dec 2021 16:39:03 +0000 (00:39 +0800)
commit2766448c5cc3efc491fd9670f60b6b141ac3b456
treea5a05dcade3f176f240dbdd0f67e55bbd13fb2f1
parent6a0f6018ba41658b9b85ad82ed1bd748754f3eca
openmp: Fix libgomp.c++ testsuite errors for non-offload configs

Some testcases for libgomp.c++ only works for non-shared address space offloading,
because it exercises the zero-length array section behavior for offloaded
address space, testing for NULL/non-NULL cases.

libgomp/ChangeLog:

* testsuite/libgomp.c++/target-lambda-1.C: Only run under
"target offload_device_nonshared_as"
* testsuite/libgomp.c++/target-this-3.C: Likewise.
* testsuite/libgomp.c++/target-this-4.C: Likewise.
libgomp/testsuite/libgomp.c++/target-lambda-1.C
libgomp/testsuite/libgomp.c++/target-this-3.C
libgomp/testsuite/libgomp.c++/target-this-4.C