]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/locale/cons/12352.cc
libstdc++: Avoid warnings in tests
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / locale / cons / 12352.cc
index 9d07c5af06310971eee37b6b27719611026d1279..5fc41116649d4450ff1e0b7c5d4f8d3d82cf8402 100644 (file)
@@ -71,6 +71,18 @@ void operator delete[](void* p) throw()
   deallocate(p);
 }
 
+#if __cpp_sized_deallocation
+void operator delete(void* p, std::size_t) throw()
+{
+  deallocate(p);
+}
+
+void operator delete[](void* p, std::size_t) throw()
+{
+  deallocate(p);
+}
+#endif
+
 void* operator new(std::size_t n, const std::nothrow_t&) throw()
 {
   return allocate(n);