]> granicus.if.org Git - clang/commitdiff
Extend the noexcept expression test to test noexcept specification functions.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 15 Mar 2011 20:45:42 +0000 (20:45 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 15 Mar 2011 20:45:42 +0000 (20:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127693 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp

index e776a8f3c18469f89210e5051ddab14496e25c28..28ed62c71ec09020d60767c131461e4b70e08db4 100644 (file)
@@ -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)();