10 lines · cpp
1// REQUIRES: x86-registered-target, staticanalyzer2 3// RUN: %clang_cc1 -fopenmp -triple x86_64-pc-linux-gnu -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify -Wopenmp-target-exception -analyze4#pragma omp declare target5void foo(void) {6 throw 404;7}8#pragma omp end declare target9// expected-no-diagnostics10