Skip to content

Commit 6fcda9a

Browse files
committed
[clang] Fix test to require x86
This test forces -triple x86_64-pc-linux-gnu. This will fail if the x86 target has not been built. Fix so that the target is required. Remove trailing whitespace.
1 parent b94a66d commit 6fcda9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: nvptx-registered-target
1+
// REQUIRES: nvptx-registered-target, x86-registered-target
22

33
// RUN: %clang_cc1 -fopenmp -triple nvptx64 -fopenmp-is-target-device %s -S -Wno-openmp-target-exception -o - | FileCheck -check-prefix=DEVICE %s
44
// 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 @@
88
// HOST-NOT: trap;
99
#pragma omp declare target
1010
void foo(void) {
11-
throw 404;
11+
throw 404;
1212
}
1313
#pragma omp end declare target

0 commit comments

Comments
 (0)