+2007-05-22 Paolo Carlini <pcarlini@suse.de>
+
+ * testsuite/util/testsuite_allocator.h (check_new): Assign false
+ to new_called.
+ (check_delete): Likewise for delete_called.
+
2007-05-21 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/c_locale.h: Do not include <cstdarg>, use builtins.
// -*- C++ -*-
// Testing allocator for the C++ library testsuite.
//
-// Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007
+// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
namespace
{
- bool new_called = false;
- bool delete_called = false;
+ bool new_called;
+ bool delete_called;
};
namespace __gnu_test
check_new(Alloc a = Alloc())
{
bool test __attribute__((unused)) = true;
+ new_called = false;
a.allocate(10);
test &= ( new_called == uses_global_new );
return test;
check_delete(Alloc a = Alloc())
{
bool test __attribute__((unused)) = true;
+ delete_called = false;
typename Alloc::pointer p = a.allocate(10);
a.deallocate(p, 10);
test &= ( delete_called == uses_global_delete );