forked from OSchip/llvm-project
Add another, pretty trivial, exception spec test case.
llvm-svn: 127602
This commit is contained in:
parent
c5efcbad71
commit
849385bf76
|
@ -0,0 +1,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
|
||||
}
|
Loading…
Reference in New Issue