================ @@ -0,0 +1,37 @@ +// RUN: %clang_cc1 -verify=expected,host -fopenmp -fsyntax-only %s +// RUN: %clang_cc1 -verify=expected,simd -fopenmp-simd -fsyntax-only %s +// RUN: %clang_cc1 -verify=expected,host -fopenmp -fopenmp-targets=x86_64 -triple x86_64 -fsyntax-only %s + +// Exceptions are disabled, so a host compilation must diagnose 'try' and 'throw' +// whether or not an offload target is configured. + +void foo(); ---------------- pgerell wrote:
Added a bare `throw;` case. https://github.com/llvm/llvm-project/pull/220316 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
