YouCompleteMe/cpp/llvm/tools/clang/test/CXX/except/except.spec/p11.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

13 lines
288 B
C++

// RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -fsyntax-only -verify %s
// This is the "let the user shoot himself 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
}