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-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s --check-prefix CHK-EXCEPTION 4 5 void test_increment() { 6 #pragma omp target 7 { 8 []() { return; }(); 9 } 10 } 11 12 int main() { 13 test_increment(); 14 return 0; 15 } 16 17 //CHK-EXCEPTION-NOT: invoke 18 19