android_mt6572_jiabo/external/clang/test/CXX/except/except.spec/p11.cpp
2025-09-05 16:56:03 +08:00

13 lines
318 B
C++

// RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -fsyntax-only -verify %s
// expected-no-diagnostics
// This is the "let the user shoot themselves in the foot" clause.
void f() noexcept {
throw 0; // no-error
}
void g() throw() {
throw 0; // no-error
}
void h() throw(int) {
throw 0.0; // no-error
}