diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-03-14 18:51:44 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-03-14 18:51:44 +0000 |
commit | 9351b031c445a6bc37a8cfa7ab84fb6dfe55ae3a (patch) | |
tree | 0b4de4e18385a1051b6af89a42375565fd1f0dc8 | |
parent | 8999fe1bc367b3ecc878d135c7b31e3479da56f4 (diff) |
Add another, pretty trivial, exception spec test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127602 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CXX/except/except.spec/p11.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CXX/except/except.spec/p11.cpp b/test/CXX/except/except.spec/p11.cpp new file mode 100644 index 0000000000..268b53ad79 --- /dev/null +++ b/test/CXX/except/except.spec/p11.cpp @@ -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 +} |