[cfe-commits] r127699 - /cfe/trunk/test/CXX/except/except.spec/p3.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Tue Mar 15 14:15:06 PDT 2011
Author: cornedbee
Date: Tue Mar 15 16:15:06 2011
New Revision: 127699
URL: http://llvm.org/viewvc/llvm-project?rev=127699&view=rev
Log:
Fix test case.
Modified:
cfe/trunk/test/CXX/except/except.spec/p3.cpp
Modified: cfe/trunk/test/CXX/except/except.spec/p3.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/except/except.spec/p3.cpp?rev=127699&r1=127698&r2=127699&view=diff
==============================================================================
--- cfe/trunk/test/CXX/except/except.spec/p3.cpp (original)
+++ cfe/trunk/test/CXX/except/except.spec/p3.cpp Tue Mar 15 16:15:06 2011
@@ -98,8 +98,9 @@
// with a throw(bad_alloc) spec, because C++0x makes an incompatible change
// here.
extern "C++" { namespace std { class bad_alloc {}; } }
-void* operator new(unsigned long) throw(std::bad_alloc);
-void* operator new(unsigned long);
-void* operator new[](unsigned long);
-void* operator new[](unsigned long) throw(std::bad_alloc);
+typedef decltype(sizeof(int)) mysize_t;
+void* operator new(mysize_t) throw(std::bad_alloc);
+void* operator new(mysize_t);
+void* operator new[](mysize_t);
+void* operator new[](mysize_t) throw(std::bad_alloc);
More information about the cfe-commits
mailing list