Skip to content

Commit 7daa43e

Browse files
tarunprabhuclingfei
authored andcommitted
[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.
1 parent 5a447eb commit 7daa43e

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)