re PR libstdc++/40917 (FAIL: ext/array_allocator/check_delete.cc (test for excess errors))

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
This commit is contained in:
Paolo Carlini 2009-07-30 21:02:44 +00:00 committed by Paolo Carlini
parent 29e6733c20
commit 7ce18a45cb
5 changed files with 25 additions and 9 deletions

View 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.

View 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
{

View 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()
{

View 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()
{

View 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);
}
}