summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-30 21:02:44 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-30 21:02:44 +0000
commit3f501de4aadd548abdae65ccc8291b4d2dc05a64 (patch)
tree7e6306a5726814cac0b4e9fd2a8a3ed6994680d9
parent32374e3c5f1de3cdbcc91655e567165807134275 (diff)
downloadppe42-gcc-3f501de4aadd548abdae65ccc8291b4d2dc05a64.tar.gz
ppe42-gcc-3f501de4aadd548abdae65ccc8291b4d2dc05a64.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150272 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog13
-rw-r--r--libstdc++-v3/testsuite/23_containers/list/modifiers/swap/1.cc2
-rw-r--r--libstdc++-v3/testsuite/23_containers/list/modifiers/swap/2.cc2
-rw-r--r--libstdc++-v3/testsuite/23_containers/list/modifiers/swap/3.cc2
-rw-r--r--libstdc++-v3/testsuite/util/replacement_memory_operators.h15
5 files changed, 25 insertions, 9 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index dc78dbd9611..81226a044f7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/1.cc b/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/1.cc
index d9bd9a2194e..767640ea996 100644
--- a/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/1.cc
+++ b/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/1.cc
@@ -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
{
diff --git a/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/2.cc b/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/2.cc
index 7bd75a39e3c..d1faf025f2f 100644
--- a/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/2.cc
+++ b/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/2.cc
@@ -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()
{
diff --git a/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/3.cc b/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/3.cc
index f994e9b4ae1..676466d537a 100644
--- a/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/3.cc
+++ b/libstdc++-v3/testsuite/23_containers/list/modifiers/swap/3.cc
@@ -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()
{
diff --git a/libstdc++-v3/testsuite/util/replacement_memory_operators.h b/libstdc++-v3/testsuite/util/replacement_memory_operators.h
index 91c8fa3d38a..c7b19edc457 100644
--- a/libstdc++-v3/testsuite/util/replacement_memory_operators.h
+++ b/libstdc++-v3/testsuite/util/replacement_memory_operators.h
@@ -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);
}
}
OpenPOWER on IntegriCloud