1e3b0a19dSGheorghe-Teodor Bercea /// Make sure no exception messages are inclided in the llvm output.
2e3b0a19dSGheorghe-Teodor Bercea // 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
3e3b0a19dSGheorghe-Teodor Bercea // 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
4*602d9b0aSSaiyedul Islam // 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
5e3b0a19dSGheorghe-Teodor Bercea
test_increment()6e3b0a19dSGheorghe-Teodor Bercea void test_increment() {
7e3b0a19dSGheorghe-Teodor Bercea #pragma omp target
8e3b0a19dSGheorghe-Teodor Bercea {
9e3b0a19dSGheorghe-Teodor Bercea []() { return; }();
10e3b0a19dSGheorghe-Teodor Bercea }
11e3b0a19dSGheorghe-Teodor Bercea }
12e3b0a19dSGheorghe-Teodor Bercea
main()13e3b0a19dSGheorghe-Teodor Bercea int main() {
14e3b0a19dSGheorghe-Teodor Bercea test_increment();
15e3b0a19dSGheorghe-Teodor Bercea return 0;
16e3b0a19dSGheorghe-Teodor Bercea }
17e3b0a19dSGheorghe-Teodor Bercea
18e3b0a19dSGheorghe-Teodor Bercea //CHK-EXCEPTION-NOT: invoke
19e3b0a19dSGheorghe-Teodor Bercea
20