blob: 268b53ad79d04b35c756a1fb9d60ce41816f3621 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
// RUN: %clang_cc1 -std=c++0x -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
}
|