aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2022-07-07 09:59:45 +0200
committerThomas Schwinge <thomas@codesourcery.com>2022-07-07 12:38:50 +0200
commit99831ceb872cd1a3f3207fd2dfe03ef65dd9089b (patch)
treea05daf683ff69a39bc42ecfe8c5a274dfc044882 /libgomp
parent8bc243943765f969c0d4625721a9944e9516d013 (diff)
downloadgcc-99831ceb872cd1a3f3207fd2dfe03ef65dd9089b.zip
gcc-99831ceb872cd1a3f3207fd2dfe03ef65dd9089b.tar.gz
gcc-99831ceb872cd1a3f3207fd2dfe03ef65dd9089b.tar.bz2
Adjust 'libgomp.c-c++-common/requires-3.c'
As documented, this one does "Check diagnostic by device-compiler's lto1". Indeed there are none when compiling with '-foffload=disable' with an offloading-enabled compiler, so we should use 'offload_target_[...]', as used in other similar test cases. Follow-up to recent commit 683f11843974f0bdf42f79cdcbb0c2b43c7b81b0 "OpenMP: Move omp requires checks to libgomp". libgomp/ * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/testsuite/libgomp.c-c++-common/requires-3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.c-c++-common/requires-3.c b/libgomp/testsuite/libgomp.c-c++-common/requires-3.c
index 4b07ffd..7091f40 100644
--- a/libgomp/testsuite/libgomp.c-c++-common/requires-3.c
+++ b/libgomp/testsuite/libgomp.c-c++-common/requires-3.c
@@ -1,4 +1,4 @@
-/* { dg-do link { target offloading_enabled } } */
+/* { dg-do link { target { offload_target_nvptx || offload_target_amdgcn } } } */
/* { dg-additional-sources requires-3-aux.c } */
/* Check diagnostic by device-compiler's lto1.