[libcxx] r289357 - Fix yet another dynamic exception spec

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 10 18:49:37 PST 2016


Author: ericwf
Date: Sat Dec 10 20:49:37 2016
New Revision: 289357

URL: http://llvm.org/viewvc/llvm-project?rev=289357&view=rev
Log:
Fix yet another dynamic exception spec

Modified:
    libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp

Modified: libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp?rev=289357&r1=289356&r2=289357&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp Sat Dec 10 20:49:37 2016
@@ -29,7 +29,7 @@ std::atomic<unsigned> throw_one(0xFFFF);
 std::atomic<unsigned> outstanding_new(0);
 
 
-void* operator new(std::size_t s) throw(std::bad_alloc)
+void* operator new(std::size_t s) TEST_THROW_SPEC(std::bad_alloc)
 {
     if (throw_one == 0)
         TEST_THROW(std::bad_alloc());
@@ -40,7 +40,7 @@ void* operator new(std::size_t s) throw(
     return ret;
 }
 
-void  operator delete(void* p) throw()
+void  operator delete(void* p) TEST_NOEXCEPT
 {
     --outstanding_new;
     std::free(p);




More information about the cfe-commits mailing list