20 lines
854 B
C++
20 lines
854 B
C++
/// 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
|
|
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=amdgcn-amd-amdhsa -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
|
|
|