diff options
Diffstat (limited to 'clang/test/CXX/expr/expr.unary/expr.unary.noexcept')
| -rw-r--r-- | clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp b/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp index e776a8f3c18..28ed62c71ec 100644 --- a/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp +++ b/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp @@ -20,6 +20,8 @@ void allspec() throw(...); 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 @@ void call() { N(intspec()); P(emptyspec()); P(nothrowattr()); + P(noexcept_true()); + N(noexcept_false()); } void (*pnospec)(); |

