commit | 0eab51c38db24f445ee6d84486169e3e02888489 | [log] [tgz] |
---|---|---|
author | Sebastian Redl <sebastian.redl@getdesigned.at> | Tue Mar 15 20:45:42 2011 +0000 |
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | Tue Mar 15 20:45:42 2011 +0000 |
tree | 7b8484a59992825d55f8acfaf02854f0507da92a | |
parent | d8f2e8ed63072ec5a1a8329aa772ae940f1dc3bc [diff] |
Extend the noexcept expression test to test noexcept specification functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127693 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp b/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp index e776a8f..28ed62c 100644 --- a/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp +++ b/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp
@@ -20,6 +20,8 @@ void intspec() throw(int); void emptyspec() throw(); void nothrowattr() __attribute__((nothrow)); +void noexcept_true() noexcept; +void noexcept_false() noexcept(false); void call() { N(nospec()); @@ -27,6 +29,8 @@ N(intspec()); P(emptyspec()); P(nothrowattr()); + P(noexcept_true()); + N(noexcept_false()); } void (*pnospec)();