Commit 7ec4a5ce by Benjamin Kosnik Committed by Benjamin Kosnik

re PR libstdc++/26142 (global debug namespace clashes everywhere)

2006-02-08  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/26142
	* include/debug/debug.h: Move debug alias inside namespace std,
	same with namespace __gnu_cxx. Add top-level __gnu_debug
	namespace.	
	* include/debug/hash_multimap.h: Nest within __gnu_cxx, not
	std. Also, change nesting namespace name from __gnu_debug_def to
	__gnu_debug.	
	* include/debug/hash_map.h: Same.
	* include/debug/hash_multiset.h: Same.
	* include/debug/hash_set.h: Same.
	* docs/html/debug.html: Same.
	* testsuite/23_containers/vector/26412.cc: New.
	* testsuite/23_containers/vector/invalidation/1.cc:  Correct
	qualifications for debug namespace change.
	* testsuite/23_containers/vector/invalidation/2.cc: Same.
	* testsuite/23_containers/vector/invalidation/3.cc: Same.
	* testsuite/23_containers/vector/invalidation/4.cc: Same.
	* testsuite/23_containers/deque/invalidation/1.cc: Same.
	* testsuite/23_containers/deque/invalidation/2.cc: Same.
	* testsuite/23_containers/deque/invalidation/3.cc: Same.
	* testsuite/23_containers/deque/invalidation/4.cc: Same.
	* testsuite/23_containers/multiset/invalidation/1.cc: Same.
	* testsuite/23_containers/multiset/invalidation/2.cc: Same.
	* testsuite/23_containers/multimap/invalidation/1.cc: Same.
	* testsuite/23_containers/multimap/invalidation/2.cc: Same.
	* testsuite/23_containers/bitset/invalidation/1.cc: Same.
	* testsuite/23_containers/bitset/cons/16020.cc: Same.
	* testsuite/23_containers/bitset/operations/13838.cc: Same.
	* testsuite/23_containers/list/invalidation/1.cc: Same.
	* testsuite/23_containers/list/invalidation/2.cc: Same.
	* testsuite/23_containers/list/invalidation/3.cc: Same.
	* testsuite/23_containers/list/invalidation/4.cc: Same.
	* testsuite/23_containers/set/invalidation/1.cc: Same.
	* testsuite/23_containers/set/invalidation/2.cc: Same.
	* testsuite/23_containers/map/invalidation/1.cc: Same.
	* testsuite/23_containers/map/invalidation/2.cc: Same.
	* testsuite/23_containers/map/modifiers/insert/16813.cc: Same.
	* testsuite/21_strings/basic_string/2.cc: Same.

From-SVN: r110786
parent d537b2eb
2006-02-08 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/26142
* include/debug/debug.h: Move debug alias inside namespace std,
same with namespace __gnu_cxx. Add top-level __gnu_debug
namespace.
* include/debug/hash_multimap.h: Nest within __gnu_cxx, not
std. Also, change nesting namespace name from __gnu_debug_def to
__gnu_debug.
* include/debug/hash_map.h: Same.
* include/debug/hash_multiset.h: Same.
* include/debug/hash_set.h: Same.
* docs/html/debug.html: Same.
* testsuite/23_containers/vector/26412.cc: New.
* testsuite/23_containers/vector/invalidation/1.cc: Correct
qualifications for debug namespace change.
* testsuite/23_containers/vector/invalidation/2.cc: Same.
* testsuite/23_containers/vector/invalidation/3.cc: Same.
* testsuite/23_containers/vector/invalidation/4.cc: Same.
* testsuite/23_containers/deque/invalidation/1.cc: Same.
* testsuite/23_containers/deque/invalidation/2.cc: Same.
* testsuite/23_containers/deque/invalidation/3.cc: Same.
* testsuite/23_containers/deque/invalidation/4.cc: Same.
* testsuite/23_containers/multiset/invalidation/1.cc: Same.
* testsuite/23_containers/multiset/invalidation/2.cc: Same.
* testsuite/23_containers/multimap/invalidation/1.cc: Same.
* testsuite/23_containers/multimap/invalidation/2.cc: Same.
* testsuite/23_containers/bitset/invalidation/1.cc: Same.
* testsuite/23_containers/bitset/cons/16020.cc: Same.
* testsuite/23_containers/bitset/operations/13838.cc: Same.
* testsuite/23_containers/list/invalidation/1.cc: Same.
* testsuite/23_containers/list/invalidation/2.cc: Same.
* testsuite/23_containers/list/invalidation/3.cc: Same.
* testsuite/23_containers/list/invalidation/4.cc: Same.
* testsuite/23_containers/set/invalidation/1.cc: Same.
* testsuite/23_containers/set/invalidation/2.cc: Same.
* testsuite/23_containers/map/invalidation/1.cc: Same.
* testsuite/23_containers/map/invalidation/2.cc: Same.
* testsuite/23_containers/map/modifiers/insert/16813.cc: Same.
* testsuite/21_strings/basic_string/2.cc: Same.
2006-02-08 Paolo Carlini <pcarlini@suse.de> 2006-02-08 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/26133 (DR 241, [WP]) PR libstdc++/26133 (DR 241, [WP])
......
...@@ -163,91 +163,91 @@ ...@@ -163,91 +163,91 @@
<tr> <tr>
<td>std::bitset</td> <td>std::bitset</td>
<td>&lt;bitset&gt;</td> <td>&lt;bitset&gt;</td>
<td>debug::bitset</td> <td>__gnu_debug::bitset</td>
<td>&lt;debug/bitset&gt;</td> <td>&lt;debug/bitset&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::deque</td> <td>std::deque</td>
<td>&lt;deque&gt;</td> <td>&lt;deque&gt;</td>
<td>debug::deque</td> <td>__gnu_debug::deque</td>
<td>&lt;debug/deque&gt;</td> <td>&lt;debug/deque&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::list</td> <td>std::list</td>
<td>&lt;list&gt;</td> <td>&lt;list&gt;</td>
<td>debug::list</td> <td>__gnu_debug::list</td>
<td>&lt;debug/list&gt;</td> <td>&lt;debug/list&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::map</td> <td>std::map</td>
<td>&lt;map&gt;</td> <td>&lt;map&gt;</td>
<td>debug::map</td> <td>__gnu_debug::map</td>
<td>&lt;debug/map&gt;</td> <td>&lt;debug/map&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::multimap</td> <td>std::multimap</td>
<td>&lt;map&gt;</td> <td>&lt;map&gt;</td>
<td>debug::multimap</td> <td>__gnu_debug::multimap</td>
<td>&lt;debug/map&gt;</td> <td>&lt;debug/map&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::multiset</td> <td>std::multiset</td>
<td>&lt;set&gt;</td> <td>&lt;set&gt;</td>
<td>debug::multiset</td> <td>__gnu_debug::multiset</td>
<td>&lt;debug/set&gt;</td> <td>&lt;debug/set&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::set</td> <td>std::set</td>
<td>&lt;set&gt;</td> <td>&lt;set&gt;</td>
<td>debug::set</td> <td>__gnu_debug::set</td>
<td>&lt;debug/set&gt;</td> <td>&lt;debug/set&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::string</td> <td>std::string</td>
<td>&lt;string&gt;</td> <td>&lt;string&gt;</td>
<td>debug::string</td> <td>__gnu_debug::string</td>
<td>&lt;debug/string&gt;</td> <td>&lt;debug/string&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::wstring</td> <td>std::wstring</td>
<td>&lt;string&gt;</td> <td>&lt;string&gt;</td>
<td>debug::wstring</td> <td>__gnu_debug::wstring</td>
<td>&lt;debug/string&gt;</td> <td>&lt;debug/string&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::basic_string</td> <td>std::basic_string</td>
<td>&lt;string&gt;</td> <td>&lt;string&gt;</td>
<td>debug::basic_string</td> <td>__gnu_debug::basic_string</td>
<td>&lt;debug/string&gt;</td> <td>&lt;debug/string&gt;</td>
</tr> </tr>
<tr> <tr>
<td>std::vector</td> <td>std::vector</td>
<td>&lt;vector&gt;</td> <td>&lt;vector&gt;</td>
<td>debug::vector</td> <td>__gnu_debug::vector</td>
<td>&lt;debug/vector&gt;</td> <td>&lt;debug/vector&gt;</td>
</tr> </tr>
<tr> <tr>
<td>__gnu_cxx::hash_map</td> <td>__gnu_cxx::hash_map</td>
<td>&lt;ext/hash_map&gt;</td> <td>&lt;ext/hash_map&gt;</td>
<td>debug::hash_map</td> <td>__gnu_debug::hash_map</td>
<td>&lt;debug/hash_map&gt;</td> <td>&lt;debug/hash_map&gt;</td>
</tr> </tr>
<tr> <tr>
<td>__gnu_cxx::hash_multimap</td> <td>__gnu_cxx::hash_multimap</td>
<td>&lt;ext/hash_map&gt;</td> <td>&lt;ext/hash_map&gt;</td>
<td>debug::hash_multimap</td> <td>__gnu_debug::hash_multimap</td>
<td>&lt;debug/hash_map&gt;</td> <td>&lt;debug/hash_map&gt;</td>
</tr> </tr>
<tr> <tr>
<td>__gnu_cxx::hash_set</td> <td>__gnu_cxx::hash_set</td>
<td>&lt;ext/hash_set&gt;</td> <td>&lt;ext/hash_set&gt;</td>
<td>debug::hash_set</td> <td>__gnu_debug::hash_set</td>
<td>&lt;debug/hash_set&gt;</td> <td>&lt;debug/hash_set&gt;</td>
</tr> </tr>
<tr> <tr>
<td>__gnu_cxx::hash_multiset</td> <td>__gnu_cxx::hash_multiset</td>
<td>&lt;ext/hash_set&gt;</td> <td>&lt;ext/hash_set&gt;</td>
<td>debug::hash_multiset</td> <td>__gnu_debug::hash_multiset</td>
<td>&lt;debug/hash_set&gt;</td> <td>&lt;debug/hash_set&gt;</td>
</tr> </tr>
</table> </table>
......
// Debugging support implementation -*- C++ -*- // Debugging support implementation -*- C++ -*-
// Copyright (C) 2003, 2005 // Copyright (C) 2003, 2005, 2006
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -39,14 +39,24 @@ ...@@ -39,14 +39,24 @@
* standard library algorithms. * standard library algorithms.
*/ */
namespace std namespace std
{ {
namespace __gnu_debug_def { } namespace __gnu_debug_def { }
namespace __gnu_debug { using namespace __gnu_debug_def; } namespace __gnu_debug { using namespace __gnu_debug_def; }
namespace debug = __gnu_debug;
}
namespace __gnu_cxx
{
namespace __gnu_debug { };
namespace debug = __gnu_debug;
} }
namespace debug = std::__gnu_debug; namespace __gnu_debug
{
using namespace std::debug;
using namespace __gnu_cxx::debug;
}
#ifdef _GLIBCXX_DEBUG #ifdef _GLIBCXX_DEBUG
......
// Debugging hash_map implementation -*- C++ -*- // Debugging hash_map implementation -*- C++ -*-
// Copyright (C) 2003, 2005 // Copyright (C) 2003, 2005, 2006
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_iterator.h> #include <debug/safe_iterator.h>
namespace std namespace __gnu_cxx
{ {
namespace __gnu_debug_def namespace __gnu_debug
{ {
template<typename _Value, typename _Tp, template<typename _Value, typename _Tp,
typename _HashFcn = __gnu_cxx::hash<_Value>, typename _HashFcn = __gnu_cxx::hash<_Value>,
...@@ -267,7 +267,7 @@ namespace __gnu_debug_def ...@@ -267,7 +267,7 @@ namespace __gnu_debug_def
swap(hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __x, swap(hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __x,
hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __y) hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __y)
{ __x.swap(__y); } { __x.swap(__y); }
} // namespace __gnu_debug_def } // namespace __gnu_debug
} // namespace std } // namespace __gnu_cxx
#endif #endif
// Debugging hash_multimap implementation -*- C++ -*- // Debugging hash_multimap implementation -*- C++ -*-
// Copyright (C) 2003, 2005 // Copyright (C) 2003, 2005, 2006
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_iterator.h> #include <debug/safe_iterator.h>
namespace std namespace __gnu_cxx
{ {
namespace __gnu_debug_def namespace __gnu_debug
{ {
template<typename _Value, typename _Tp, template<typename _Value, typename _Tp,
typename _HashFcn = __gnu_cxx::hash<_Value>, typename _HashFcn = __gnu_cxx::hash<_Value>,
...@@ -258,7 +258,7 @@ namespace __gnu_debug_def ...@@ -258,7 +258,7 @@ namespace __gnu_debug_def
swap(hash_multimap<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __x, swap(hash_multimap<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __x,
hash_multimap<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __y) hash_multimap<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>& __y)
{ __x.swap(__y); } { __x.swap(__y); }
} // namespace __gnu_debug_def } // namespace __gnu_debug
} // namespace std } // namespace __gnu_cxx
#endif #endif
// Debugging hash_multiset implementation -*- C++ -*- // Debugging hash_multiset implementation -*- C++ -*-
// Copyright (C) 2003, 2005 // Copyright (C) 2003, 2005, 2006
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_iterator.h> #include <debug/safe_iterator.h>
namespace std namespace __gnu_cxx
{ {
namespace __gnu_debug_def namespace __gnu_debug
{ {
template<typename _Value, template<typename _Value,
typename _HashFcn = __gnu_cxx::hash<_Value>, typename _HashFcn = __gnu_cxx::hash<_Value>,
...@@ -233,7 +233,7 @@ template<typename _Value, typename _HashFcn, typename _EqualKey, typename _Alloc ...@@ -233,7 +233,7 @@ template<typename _Value, typename _HashFcn, typename _EqualKey, typename _Alloc
swap(hash_multiset<_Value, _HashFcn, _EqualKey, _Alloc>& __x, swap(hash_multiset<_Value, _HashFcn, _EqualKey, _Alloc>& __x,
hash_multiset<_Value, _HashFcn, _EqualKey, _Alloc>& __y) hash_multiset<_Value, _HashFcn, _EqualKey, _Alloc>& __y)
{ __x.swap(__y); } { __x.swap(__y); }
} // namespace __gnu_debug_def } // namespace __gnu_debug
} // namespace std } // namespace __gnu_cxx
#endif #endif
// Debugging hash_set implementation -*- C++ -*- // Debugging hash_set implementation -*- C++ -*-
// Copyright (C) 2003, 2005 // Copyright (C) 2003, 2005, 2006
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_iterator.h> #include <debug/safe_iterator.h>
namespace std namespace __gnu_cxx
{ {
namespace __gnu_debug_def namespace __gnu_debug
{ {
template<typename _Value, template<typename _Value,
typename _HashFcn = __gnu_cxx::hash<_Value>, typename _HashFcn = __gnu_cxx::hash<_Value>,
...@@ -242,7 +242,7 @@ namespace __gnu_debug_def ...@@ -242,7 +242,7 @@ namespace __gnu_debug_def
swap(hash_set<_Value, _HashFcn, _EqualKey, _Alloc>& __x, swap(hash_set<_Value, _HashFcn, _EqualKey, _Alloc>& __x,
hash_set<_Value, _HashFcn, _EqualKey, _Alloc>& __y) hash_set<_Value, _HashFcn, _EqualKey, _Alloc>& __y)
{ __x.swap(__y); } { __x.swap(__y); }
} // namespace __gnu_debug_def } // namespace __gnu_debug
} // namespace std } // namespace __gnu_cxx
#endif #endif
// Copyright (C) 2005 Free Software Foundation, Inc. // Copyright (C) 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,5 +32,6 @@ ...@@ -32,5 +32,6 @@
// { dg-do compile } // { dg-do compile }
// libstdc++/21770 // libstdc++/21770
namespace debug = __gnu_debug;
template class debug::basic_string<int, std::char_traits<int>, template class debug::basic_string<int, std::char_traits<int>,
std::allocator<char> >; std::allocator<char> >;
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
// libstdc++/16020 // libstdc++/16020
void test01() void test01()
{ {
using debug::bitset; using __gnu_debug::bitset;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
bitset<5> b(7); bitset<5> b(7);
......
// Bitset reference invalidation tests // Bitset reference invalidation tests
// Copyright (C) 2003, 2004 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <debug/bitset> #include <debug/bitset>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::bitset; using __gnu_debug::bitset;
bool test = true; bool test = true;
......
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
// libstdc++/13838 // libstdc++/13838
void test01() void test01()
{ {
using debug::bitset; using __gnu_debug::bitset;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
bitset<4> b0, b1; bitset<4> b0, b1;
......
// Deque iterator invalidation tests // Deque iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <debug/deque> #include <debug/deque>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::deque; using __gnu_debug::deque;
bool test = true; bool test = true;
......
// Deque iterator invalidation tests // Deque iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <debug/deque> #include <debug/deque>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::deque; using __gnu_debug::deque;
bool test = true; bool test = true;
......
// Deque iterator invalidation tests // Deque iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <debug/deque> #include <debug/deque>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::deque; using __gnu_debug::deque;
bool test = true; bool test = true;
......
// Deque iterator invalidation tests // Deque iterator invalidation tests
// Copyright (C) 2003, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <debug/deque> #include <debug/deque>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::deque; using __gnu_debug::deque;
bool test = true; bool test = true;
......
// List iterator invalidation tests // List iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::list; using __gnu_debug::list;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// List iterator invalidation tests // List iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::list; using __gnu_debug::list;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// List iterator invalidation tests // List iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::list; using __gnu_debug::list;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// List iterator invalidation tests // List iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::list; using __gnu_debug::list;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// Map iterator invalidation tests // Map iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::map; using __gnu_debug::map;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// Map iterator invalidation tests // Map iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::map; using __gnu_debug::map;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
// libstdc++/16813 // libstdc++/16813
void test01() void test01()
{ {
using debug::map; using __gnu_debug::map;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
map<int, float> m1, m2; map<int, float> m1, m2;
......
// Multimap iterator invalidation tests // Multimap iterator invalidation tests
// Copyright (C) 2003, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <utility> #include <utility>
using debug::multimap; using __gnu_debug::multimap;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// Multimap iterator invalidation tests // Multimap iterator invalidation tests
// Copyright (C) 2003, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <utility> #include <utility>
using debug::multimap; using __gnu_debug::multimap;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// Multiset iterator invalidation tests // Multiset iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::multiset; using __gnu_debug::multiset;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// Multiset iterator invalidation tests // Multiset iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::multiset; using __gnu_debug::multiset;
using std::advance; using std::advance;
// Erase // Erase
......
// Set iterator invalidation tests // Set iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::set; using __gnu_debug::set;
using std::advance; using std::advance;
bool test = true; bool test = true;
......
// Set iterator invalidation tests // Set iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::set; using __gnu_debug::set;
using std::advance; using std::advance;
// Erase // Erase
......
// Vector iterator invalidation tests // Vector iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <debug/vector> #include <debug/vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::vector; using __gnu_debug::vector;
bool test = true; bool test = true;
......
// Vector iterator invalidation tests // Vector iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <debug/vector> #include <debug/vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::vector; using __gnu_debug::vector;
bool test = true; bool test = true;
......
// Vector iterator invalidation tests // Vector iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <debug/vector> #include <debug/vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::vector; using __gnu_debug::vector;
bool test = true; bool test = true;
......
// Vector iterator invalidation tests // Vector iterator invalidation tests
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <debug/vector> #include <debug/vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using debug::vector; using __gnu_debug::vector;
bool test = true; bool test = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment