[clang] 9d49fe4 - [clang] Fix test to require x86
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 8 12:54:04 PDT 2025
Author: Tarun Prabhu
Date: 2025-10-08T13:54:00-06:00
New Revision: 9d49fe4eccfdf50faeafdf73ebd05ed6cc9141b6
URL: https://github.com/llvm/llvm-project/commit/9d49fe4eccfdf50faeafdf73ebd05ed6cc9141b6
DIFF: https://github.com/llvm/llvm-project/commit/9d49fe4eccfdf50faeafdf73ebd05ed6cc9141b6.diff
LOG: [clang] Fix test to require x86
This test would fail if the x86 target had not been built. This fix
makes the requirement on x86 explicit. Trailing whitespace has also been
removed.
Added:
Modified:
clang/test/OpenMP/nvptx_throw_trap.cpp
Removed:
################################################################################
diff --git a/clang/test/OpenMP/nvptx_throw_trap.cpp b/clang/test/OpenMP/nvptx_throw_trap.cpp
index b13a09136c17d..ce1173831f7c0 100644
--- a/clang/test/OpenMP/nvptx_throw_trap.cpp
+++ b/clang/test/OpenMP/nvptx_throw_trap.cpp
@@ -1,4 +1,4 @@
-// REQUIRES: nvptx-registered-target
+// REQUIRES: nvptx-registered-target, x86-registered-target
// RUN: %clang_cc1 -fopenmp -triple nvptx64 -fopenmp-is-target-device %s -S -Wno-openmp-target-exception -o - | FileCheck -check-prefix=DEVICE %s
// RUN: %clang_cc1 -fopenmp -triple x86_64-pc-linux-gnu -fopenmp-is-target-device -fcxx-exceptions %s -S -Wno-openmp-target-exception -o - | FileCheck -check-prefix=HOST %s
@@ -8,6 +8,6 @@
// HOST-NOT: trap;
#pragma omp declare target
void foo(void) {
- throw 404;
+ throw 404;
}
#pragma omp end declare target
More information about the cfe-commits
mailing list