diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
commit | 461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch) | |
tree | 6942083d7d56bba40ec790a453ca58ad3baf6832 /test/OpenMP/target_parallel_no_exceptions.cpp | |
parent | 75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff) |
Diffstat (limited to 'test/OpenMP/target_parallel_no_exceptions.cpp')
-rw-r--r-- | test/OpenMP/target_parallel_no_exceptions.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/OpenMP/target_parallel_no_exceptions.cpp b/test/OpenMP/target_parallel_no_exceptions.cpp new file mode 100644 index 0000000000000..95189a3ade2b3 --- /dev/null +++ b/test/OpenMP/target_parallel_no_exceptions.cpp @@ -0,0 +1,18 @@ +/// Make sure no exception messages are inclided in the llvm output. +// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc +// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm %s -fopenmp-is-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s --check-prefix CHK-EXCEPTION + +void test_increment() { +#pragma omp target + { + []() { return; }(); + } +} + +int main() { + test_increment(); + return 0; +} + +//CHK-EXCEPTION-NOT: invoke + |