brintos

brintos / llvm-project-archived public Read only

0
0
Text · 553 B · ce11738 Raw
14 lines · cpp
1// REQUIRES: nvptx-registered-target, x86-registered-target2 3// RUN: %clang_cc1 -fopenmp -triple nvptx64 -fopenmp-is-target-device %s -S -Wno-openmp-target-exception -o - | FileCheck -check-prefix=DEVICE %s4// RUN: %clang_cc1 -fopenmp -triple x86_64-pc-linux-gnu -fopenmp-is-target-device -fcxx-exceptions %s -S -Wno-openmp-target-exception -o - | FileCheck -check-prefix=HOST %s5// DEVICE: trap;6// DEVICE-NOT: __cxa_throw7// HOST: __cxa_throw8// HOST-NOT: trap;9#pragma omp declare target10void foo(void) {11	throw 404;12}13#pragma omp end declare target14