]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/40917 (FAIL: ext/array_allocator/check_delete.cc (test for excess...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 30 Jul 2009 21:02:44 +0000 (21:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 30 Jul 2009 21:02:44 +0000 (21:02 +0000)
2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40917
* testsuite/util/replacement_memory_operators.h: Add missing includes,
tweak qualifications.

2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40916
* testsuite/23_containers/list/modifiers/swap/1.cc: Fix include order.
* testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.
* testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.

From-SVN: r150272

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/list/modifiers/swap/1.cc
libstdc++-v3/testsuite/23_containers/list/modifiers/swap/2.cc
libstdc++-v3/testsuite/23_containers/list/modifiers/swap/3.cc
libstdc++-v3/testsuite/util/replacement_memory_operators.h

index dc78dbd9611e0214611b08dc768f63923219974a..81226a044f75ce1bf007e67876ff57719bc9dd52 100644 (file)
@@ -1,3 +1,16 @@
+2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/40917
+       * testsuite/util/replacement_memory_operators.h: Add missing includes,
+       tweak qualifications.
+
+2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/40916
+       * testsuite/23_containers/list/modifiers/swap/1.cc: Fix include order.
+       * testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.
+       * testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.
+
 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * acinclude.m4 (GLIBCXX_CONFIGURE): Use m4_rename_force.
index d9bd9a2194e1b148c970bda6ed8ae62009ab5b2e..767640ea996864ca9bebcb8bdfe49cee1495d7e1 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-#include "1.h"
 #include <list>
+#include "1.h"
 
 namespace std
 {
index 7bd75a39e3c363d5b32bca570ac4e0d79a7bcc2f..d1faf025f2f7bac15d38168ba18e84a1fb41de5c 100644 (file)
@@ -17,8 +17,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-#include "2.h"
 #include <list>
+#include "2.h"
 
 int main()
 { 
index f994e9b4ae139ba5068fb426d2772d4873f5106c..676466d537a4aecd76d8e5f2af0906ee3669f7a0 100644 (file)
@@ -17,8 +17,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-#include "3.h"
 #include <list>
+#include "3.h"
 
 int main()
 { 
index 91c8fa3d38ab60c6126f2399d3330bc2cdc5cd09..c7b19edc457a2340a57ebcd3a7724f05f10335a4 100644 (file)
@@ -17,6 +17,9 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <exception>
+#include <stdexcept>
+#include <cstdlib>
+#include <cstdio>
 
 namespace __gnu_test
 {
@@ -24,7 +27,7 @@ namespace __gnu_test
 
   struct counter
   {
-    size_t     _M_count;
+    std::size_t _M_count;
     bool       _M_throw;
 
     counter() : _M_count(0), _M_throw(true) { }
@@ -48,7 +51,7 @@ namespace __gnu_test
       return g;
     }
   
-    static size_t
+    static std::size_t
     count() { return get()._M_count; }
 
     static void
@@ -85,7 +88,7 @@ namespace __gnu_test
 
 void* operator new(std::size_t size) throw(std::bad_alloc)
 {
-  printf("operator new is called \n");
+  std::printf("operator new is called \n");
   void* p = std::malloc(size);
   if (p == NULL)
     throw std::bad_alloc();
@@ -95,7 +98,7 @@ void* operator new(std::size_t size) throw(std::bad_alloc)
  
 void operator delete(void* p) throw()
 {
-  printf("operator delete is called \n");
+  std::printf("operator delete is called \n");
   if (p != NULL)
     {
       std::free(p);
@@ -103,8 +106,8 @@ void operator delete(void* p) throw()
 
       std::size_t count = __gnu_test::counter::count(); 
       if (count == 0)
-       printf("All memory released \n");
+       std::printf("All memory released \n");
       else
-       printf("%lu allocations to be released \n", count);
+       std::printf("%lu allocations to be released \n", count);
     }
 }