mirror of git://gcc.gnu.org/git/gcc.git
1.cc: Test result string.
2004-03-04 Benjamin Kosnik <bkoz@redhat.com> * testsuite/23_containers/multiset/insert/1.cc: Test result string. * testsuite/23_containers/bitset/invalidation/1.cc: Main always returns 0. * testsuite/23_containers/deque/invalidation/4.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/map/invalidation/2.cc: Same. * testsuite/23_containers/multimap/invalidation/1.cc: Same. * testsuite/23_containers/multimap/invalidation/2.cc: Same. * testsuite/23_containers/multiset/invalidation/1.cc: Same. * testsuite/23_containers/multiset/invalidation/2.cc: Same. * testsuite/23_containers/set/invalidation/1.cc: Same. * testsuite/23_containers/set/invalidation/2.cc: Same. * testsuite/23_containers/vector/invalidation/1.cc: Same. * testsuite/23_containers/vector/invalidation/2.cc: Same. * testsuite/23_containers/vector/invalidation/3.cc: Same. * testsuite/23_containers/vector/invalidation/4.cc: Same. From-SVN: r78943
This commit is contained in:
parent
2aa89cbb78
commit
80e39f4ae5
|
|
@ -1,3 +1,26 @@
|
||||||
|
2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/23_containers/multiset/insert/1.cc: Test result string.
|
||||||
|
|
||||||
|
* testsuite/23_containers/bitset/invalidation/1.cc: Main always
|
||||||
|
returns 0.
|
||||||
|
* testsuite/23_containers/deque/invalidation/4.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/map/invalidation/2.cc: Same.
|
||||||
|
* testsuite/23_containers/multimap/invalidation/1.cc: Same.
|
||||||
|
* testsuite/23_containers/multimap/invalidation/2.cc: Same.
|
||||||
|
* testsuite/23_containers/multiset/invalidation/1.cc: Same.
|
||||||
|
* testsuite/23_containers/multiset/invalidation/2.cc: Same.
|
||||||
|
* testsuite/23_containers/set/invalidation/1.cc: Same.
|
||||||
|
* testsuite/23_containers/set/invalidation/2.cc: Same.
|
||||||
|
* testsuite/23_containers/vector/invalidation/1.cc: Same.
|
||||||
|
* testsuite/23_containers/vector/invalidation/2.cc: Same.
|
||||||
|
* testsuite/23_containers/vector/invalidation/3.cc: Same.
|
||||||
|
* testsuite/23_containers/vector/invalidation/4.cc: Same.
|
||||||
|
|
||||||
2004-03-04 Paolo Carlini <pcarlini@suse.de>
|
2004-03-04 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
|
* scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// Bitset reference invalidation tests
|
// Bitset reference invalidation tests
|
||||||
|
|
||||||
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Copyright (C) 2003, 2004 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
|
||||||
|
|
@ -42,5 +42,5 @@ void test01()
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test01();
|
test01();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,5 +77,5 @@ template class __gnu_cxx::__mt_alloc<int>;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test04();
|
test04();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,5 +61,5 @@ template class __gnu_cxx::__mt_alloc<std::_List_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test01();
|
test01();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,5 +56,5 @@ template class __gnu_cxx::__mt_alloc<std::_List_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test02();
|
test02();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,5 +79,5 @@ template class __gnu_cxx::__mt_alloc<std::_List_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test03();
|
test03();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,5 +56,5 @@ template class __gnu_cxx::__mt_alloc<std::_List_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test04();
|
test04();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,5 +72,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<std::pair<int const, int
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test02();
|
test02();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,5 +54,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<std::pair<int const, int
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test01();
|
test01();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,5 +73,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<std::pair<int const, int
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test02();
|
test02();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// 1999-06-24 bkoz
|
// 1999-06-24 bkoz
|
||||||
|
|
||||||
// Copyright (C) 1999 Free Software Foundation, Inc.
|
// Copyright (C) 1999, 2004 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
|
||||||
|
|
@ -20,10 +20,11 @@
|
||||||
|
|
||||||
// 23.3.4 template class multiset
|
// 23.3.4 template class multiset
|
||||||
|
|
||||||
#include <iostream>
|
#include <sstream>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
|
@ -43,6 +44,7 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<std::pair<int, int> > >;
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
|
bool test __attribute__((unused)) = true;
|
||||||
typedef std::multiset<std::pair<int, int> >::iterator iterator;
|
typedef std::multiset<std::pair<int, int> >::iterator iterator;
|
||||||
std::pair<int, int> p(69, 0);
|
std::pair<int, int> p(69, 0);
|
||||||
std::multiset<std::pair<int, int> > s;
|
std::multiset<std::pair<int, int> > s;
|
||||||
|
|
@ -56,24 +58,13 @@ int main ()
|
||||||
++p.second;
|
++p.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX need to use debug-assert here and get this working with an
|
std::ostringstream stream;
|
||||||
// ostrinsrtream, that way we can just check the strings for
|
|
||||||
// equivalance.
|
|
||||||
std::copy(s.begin(), s.end(),
|
std::copy(s.begin(), s.end(),
|
||||||
std::ostream_iterator<std::pair<int, int> >(std::cout, "\n"));
|
std::ostream_iterator<std::pair<int, int> >(stream, "\n"));
|
||||||
|
const std::string expected("69 0\n69 1\n69 2\n69 3\n69 4\n"
|
||||||
|
"69 5\n69 6\n69 7\n69 8\n69 9\n");
|
||||||
|
std::string tested(stream.str());
|
||||||
|
VERIFY( tested == expected );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* output:
|
|
||||||
69 5
|
|
||||||
69 0
|
|
||||||
69 6
|
|
||||||
69 1
|
|
||||||
69 7
|
|
||||||
69 2
|
|
||||||
69 8
|
|
||||||
69 3
|
|
||||||
69 9
|
|
||||||
69 4
|
|
||||||
*/
|
|
||||||
|
|
|
||||||
|
|
@ -53,5 +53,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test01();
|
test01();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,10 @@
|
||||||
using __gnu_debug::multiset;
|
using __gnu_debug::multiset;
|
||||||
using std::advance;
|
using std::advance;
|
||||||
|
|
||||||
bool test = true;
|
|
||||||
|
|
||||||
// Erase
|
// Erase
|
||||||
void test02()
|
void test02()
|
||||||
{
|
{
|
||||||
|
bool test __attribute__((unused)) = true;
|
||||||
multiset<int> v;
|
multiset<int> v;
|
||||||
for (int i = 0; i < 20; ++i)
|
for (int i = 0; i < 20; ++i)
|
||||||
v.insert(i);
|
v.insert(i);
|
||||||
|
|
@ -72,5 +71,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test02();
|
test02();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,5 +53,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test01();
|
test01();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,11 @@
|
||||||
using __gnu_debug::set;
|
using __gnu_debug::set;
|
||||||
using std::advance;
|
using std::advance;
|
||||||
|
|
||||||
bool test = true;
|
|
||||||
|
|
||||||
// Erase
|
// Erase
|
||||||
void test02()
|
void test02()
|
||||||
{
|
{
|
||||||
|
bool test __attribute__((unused)) = true;
|
||||||
|
|
||||||
set<int> v;
|
set<int> v;
|
||||||
for (int i = 0; i < 20; ++i)
|
for (int i = 0; i < 20; ++i)
|
||||||
v.insert(i);
|
v.insert(i);
|
||||||
|
|
@ -72,5 +72,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<int> >;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test02();
|
test02();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,5 +61,5 @@ template class __gnu_cxx::__mt_alloc<int>;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test01();
|
test01();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,5 +66,5 @@ template class __gnu_cxx::__mt_alloc<int>;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test02();
|
test02();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,5 +91,5 @@ template class __gnu_cxx::__mt_alloc<int>;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test03();
|
test03();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,5 +68,5 @@ template class __gnu_cxx::__mt_alloc<int>;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test04();
|
test04();
|
||||||
return !test;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue