Files
clang-p2996/clang/test/OpenMP/x86_target_throw.cpp
Hans Wennborg 1968f0d798 Add REQUIRES: staticanalyzer to some tests using clang -analyze
Otherwise they fail in builds configured with
-DCLANG_ENABLE_STATIC_ANALYZER=OFF. Follow-up to
3c9988f85d.
2023-08-31 09:37:04 +02:00

10 lines
340 B
C++

// REQUIRES: x86-registered-target, staticanalyzer
// RUN: %clang_cc1 -fopenmp -triple x86_64-pc-linux-gnu -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -S -verify -Wopenmp-target-exception -analyze
#pragma omp declare target
void foo(void) {
throw 404;
}
#pragma omp end declare target
// expected-no-diagnostics