[libcxx] r212723 - Fix warning in test - missing exception specifier for overload of operator new

Marshall Clow mclow.lists at gmail.com
Thu Jul 10 08:19:50 PDT 2014


Author: marshall
Date: Thu Jul 10 10:19:50 2014
New Revision: 212723

URL: http://llvm.org/viewvc/llvm-project?rev=212723&view=rev
Log:
Fix warning in test - missing exception specifier for overload of operator new

Modified:
    libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp

Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp?rev=212723&r1=212722&r2=212723&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp Thu Jul 10 10:19:50 2014
@@ -19,7 +19,7 @@
 
 unsigned delete_called = 0;
 
-void* operator new[](size_t sz)
+void* operator new[](size_t sz) throw(std::bad_alloc)
 {
     return operator new(sz);
 }





More information about the cfe-commits mailing list