summaryrefslogtreecommitdiff
path: root/test/CXX/except/except.spec/p11.cpp
blob: 1d0a647fb4f49d1c30beb72ce3019e4ba4f12ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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
}