brintos

brintos / llvm-project-archived public Read only

0
0
Text · 401 B · 36389a5 Raw
17 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 target5int foo(void) {6	int error = -1;7	try {8		error = 1;9	}10	catch (int e){ 11		error = e;12	}13	return error;14}15#pragma omp end declare target16// expected-no-diagnostics17