[cfe-commits] r127693 - /cfe/trunk/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Tue Mar 15 13:45:42 PDT 2011


Author: cornedbee
Date: Tue Mar 15 15:45:42 2011
New Revision: 127693

URL: http://llvm.org/viewvc/llvm-project?rev=127693&view=rev
Log:
Extend the noexcept expression test to test noexcept specification functions.

Modified:
    cfe/trunk/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp

Modified: cfe/trunk/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp?rev=127693&r1=127692&r2=127693&view=diff
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp (original)
+++ cfe/trunk/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp Tue Mar 15 15:45:42 2011
@@ -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)();





More information about the cfe-commits mailing list