| 1 |
/// Make sure no exception messages are inclided in the llvm output. |
| 2 |
// 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 |
| 3 |
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm %s -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s --check-prefix CHK-EXCEPTION |
| 4 |
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm %s -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s --check-prefix CHK-EXCEPTION |
| 5 |
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=spirv64 -emit-llvm %s -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s --check-prefix CHK-EXCEPTION |
| 6 |
|
| 7 |
void test_increment() { |
| 8 |
#pragma omp target |
| 9 |
{ |
| 10 |
[]() { return; }(); |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
int main() { |
| 15 |
test_increment(); |
| 16 |
return 0; |
| 17 |
} |
| 18 |
|
| 19 |
//CHK-EXCEPTION-NOT: invoke |
| 20 |
|