aboutsummaryrefslogtreecommitdiff
path: root/clang/test/OpenMP/x86_target_throw.cpp
blob: c1fef3cdb596fa794c27fbf6d14340f2ac2c81f7 (plain)
1
2
3
4
5
6
7
8
9
// REQUIRES: x86-registered-target, staticanalyzer

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