all_bound.cc: Disambiguate uses of TR1/C++0x facilities.
2007-07-12 Douglas Gregor <doug.gregor@gmail.com> * testsuite/tr1/3_function_objects/bind/all_bound.cc: Disambiguate uses of TR1/C++0x facilities. * testsuite/tr1/3_function_objects/bind/nested.cc: Ditto. * testsuite/tr1/3_function_objects/bind/placeholders.cc: Ditto. * testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_multimap/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_multimap/swap/2.cc: Ditto. * testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_set/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_set/swap/2.cc: Ditto. * testsuite/tr1/6_containers/utility/pair.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/24064.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/swap/2.cc: Ditto. * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: Ditto. * testsuite/tr1/6_containers/tuple/cons/constructor.cc: Ditto. * testsuite/tr1/6_containers/tuple/cons/assignment.cc: Ditto. * testsuite/tr1/6_containers/tuple/tuple_element.cc: Ditto. * testsuite/tr1/6_containers/tuple/tuple_size.cc: Ditto. * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc: Ditto. * testsuite/tr1/6_containers/tuple/element_access/get.cc: Ditto. * testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: Ditto. * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: Ditto. * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: Ditto. * testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_multiset/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_multiset/swap/2.cc: Ditto. From-SVN: r126590
This commit is contained in:
parent
d566f2e600
commit
2df6377e6e
28 changed files with 105 additions and 56 deletions
|
@ -1,3 +1,39 @@
|
|||
2007-07-12 Douglas Gregor <doug.gregor@gmail.com>
|
||||
|
||||
* testsuite/tr1/3_function_objects/bind/all_bound.cc: Disambiguate uses of
|
||||
TR1/C++0x facilities.
|
||||
* testsuite/tr1/3_function_objects/bind/nested.cc: Ditto.
|
||||
* testsuite/tr1/3_function_objects/bind/placeholders.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc:
|
||||
Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_multimap/swap/1.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_multimap/swap/2.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc:
|
||||
Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_set/swap/1.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_set/swap/2.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/utility/pair.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc:
|
||||
Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_map/24064.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_map/swap/1.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_map/swap/2.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/cons/constructor.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/cons/assignment.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/tuple_element.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/tuple_size.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
|
||||
Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/element_access/get.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc:
|
||||
Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_multiset/swap/1.cc: Ditto.
|
||||
* testsuite/tr1/6_containers/unordered_multiset/swap/2.cc: Ditto.
|
||||
|
||||
2007-07-10 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* configure.ac: Check if $atomicity_dir is cpu/generic/atomicity_mutex
|
||||
|
|
|
@ -30,12 +30,10 @@ bool test __attribute__((unused)) = true;
|
|||
// Operations on empty function<> objects
|
||||
void test01()
|
||||
{
|
||||
using std::tr1::bind;
|
||||
|
||||
VERIFY( bind(std::plus<int>(), 3, 5)() == 8 );
|
||||
VERIFY( bind(std::minus<int>(), 3, 5)() == -2 );
|
||||
VERIFY( bind<int>(std::plus<int>(), 3, 5)() == 8 );
|
||||
VERIFY( bind<int>(std::minus<int>(), 3, 5)() == -2 );
|
||||
VERIFY( std::tr1::bind(std::plus<int>(), 3, 5)() == 8 );
|
||||
VERIFY( std::tr1::bind(std::minus<int>(), 3, 5)() == -2 );
|
||||
VERIFY( std::tr1::bind<int>(std::plus<int>(), 3, 5)() == 8 );
|
||||
VERIFY( std::tr1::bind<int>(std::minus<int>(), 3, 5)() == -2 );
|
||||
}
|
||||
|
||||
int main()
|
||||
|
|
|
@ -30,13 +30,12 @@ bool test __attribute__((unused)) = true;
|
|||
// Operations on empty function<> objects
|
||||
void test01()
|
||||
{
|
||||
using std::tr1::bind;
|
||||
using namespace std::tr1::placeholders;
|
||||
|
||||
int five = 5;
|
||||
int seven = 7;
|
||||
VERIFY( bind(std::multiplies<int>(), _1, bind(std::minus<int>(), 6, _2))(five, seven) == -5 );
|
||||
VERIFY( bind(std::multiplies<int>(), _1, bind(std::minus<int>(), 6, _2))(seven, five) == 7 );
|
||||
VERIFY( std::tr1::bind(std::multiplies<int>(), _1, std::tr1::bind(std::minus<int>(), 6, _2))(five, seven) == -5 );
|
||||
VERIFY( std::tr1::bind(std::multiplies<int>(), _1, std::tr1::bind(std::minus<int>(), 6, _2))(seven, five) == 7 );
|
||||
}
|
||||
|
||||
int main()
|
||||
|
|
|
@ -30,13 +30,12 @@ bool test __attribute__((unused)) = true;
|
|||
// Operations on empty function<> objects
|
||||
void test01()
|
||||
{
|
||||
using std::tr1::bind;
|
||||
using namespace std::tr1::placeholders;
|
||||
|
||||
int five = 5;
|
||||
int seven = 7;
|
||||
VERIFY( bind(std::minus<int>(), _1, _2)(five, seven) == -2 );
|
||||
VERIFY( bind(std::minus<int>(), _2, _1)(five, seven) == 2 );
|
||||
VERIFY( std::tr1::bind(std::minus<int>(), _1, _2)(five, seven) == -2 );
|
||||
VERIFY( std::tr1::bind(std::minus<int>(), _2, _1)(five, seven) == 2 );
|
||||
}
|
||||
|
||||
int main()
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
|
||||
#define TEST1(x) VERIFY( x == x && !(x != x) && x <= x && !(x < x) )
|
||||
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
|
||||
int
|
||||
main()
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
|
||||
// A simple class without conversions to check some things
|
||||
struct foo
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
|
||||
int
|
||||
main()
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
#include <tr1/utility>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
|
||||
// libstdc++/23978
|
||||
void test01()
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
#include <tr1/functional>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
|
||||
int
|
||||
main()
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
|
||||
int
|
||||
main()
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
|
||||
int
|
||||
main()
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
|
||||
struct foo
|
||||
{ };
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include <tr1/tuple>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
|
||||
int
|
||||
main()
|
||||
|
|
|
@ -26,8 +26,10 @@ void test01()
|
|||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::allocator;
|
||||
using std::pair;
|
||||
using std::equal_to;
|
||||
|
||||
__unordered_map<int, char, hash<int>, equal_to<int>,
|
||||
allocator<pair<const int, char> >, true> m;
|
||||
|
|
|
@ -25,8 +25,11 @@
|
|||
#include <string>
|
||||
#include <tr1/unordered_map>
|
||||
|
||||
using namespace std;
|
||||
using namespace std::tr1;
|
||||
using std::string;
|
||||
using std::allocator;
|
||||
using std::pair;
|
||||
using std::equal_to;
|
||||
|
||||
template class unordered_map<string, float>;
|
||||
template class unordered_map<string, int,
|
||||
|
|
|
@ -30,8 +30,10 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
using std::equal_to;
|
||||
using std::map;
|
||||
|
||||
typedef pair<const char, int> my_pair;
|
||||
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
|
||||
|
|
|
@ -30,8 +30,10 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
using std::equal_to;
|
||||
using std::map;
|
||||
|
||||
typedef pair<const char, int> my_pair;
|
||||
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
|
||||
|
|
|
@ -25,8 +25,11 @@
|
|||
#include <string>
|
||||
#include <tr1/unordered_map>
|
||||
|
||||
using namespace std;
|
||||
using namespace std::tr1;
|
||||
using std::string;
|
||||
using std::equal_to;
|
||||
using std::allocator;
|
||||
using std::pair;
|
||||
|
||||
template class unordered_multimap<string, float>;
|
||||
template class unordered_multimap<string, int,
|
||||
|
|
|
@ -30,8 +30,11 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
using std::equal_to;
|
||||
using std::map;
|
||||
using std::multimap;
|
||||
|
||||
typedef pair<const char, int> my_pair;
|
||||
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
|
||||
|
|
|
@ -30,8 +30,11 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
using std::equal_to;
|
||||
using std::map;
|
||||
using std::multimap;
|
||||
|
||||
typedef pair<const char, int> my_pair;
|
||||
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
|
||||
#include <tr1/unordered_set>
|
||||
|
||||
using namespace std;
|
||||
using namespace std::tr1;
|
||||
using std::equal_to;
|
||||
using std::allocator;
|
||||
|
||||
template class unordered_multiset<int>;
|
||||
template class unordered_multiset<float, hash<float>, equal_to<float>,
|
||||
|
|
|
@ -30,8 +30,9 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::equal_to;
|
||||
using std::multiset;
|
||||
|
||||
typedef __gnu_test::uneq_allocator<char> my_alloc;
|
||||
typedef unordered_multiset<char, hash<char>, equal_to<char>, my_alloc>
|
||||
|
|
|
@ -30,8 +30,9 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::equal_to;
|
||||
using std::multiset;
|
||||
|
||||
typedef __gnu_test::uneq_allocator<char> my_alloc;
|
||||
typedef unordered_multiset<char, hash<char>, equal_to<char>, my_alloc>
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
|
||||
#include <tr1/unordered_set>
|
||||
|
||||
using namespace std;
|
||||
using namespace std::tr1;
|
||||
using std::equal_to;
|
||||
using std::allocator;
|
||||
|
||||
template class unordered_set<int>;
|
||||
template class unordered_set<float, hash<float>, equal_to<float>,
|
||||
|
|
|
@ -30,8 +30,9 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::equal_to;
|
||||
using std::set;
|
||||
|
||||
typedef __gnu_test::uneq_allocator<char> my_alloc;
|
||||
typedef unordered_set<char, hash<char>, equal_to<char>, my_alloc> my_uset;
|
||||
|
|
|
@ -30,8 +30,9 @@ void
|
|||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::equal_to;
|
||||
using std::set;
|
||||
|
||||
typedef __gnu_test::uneq_allocator<char> my_alloc;
|
||||
typedef unordered_set<char, hash<char>, equal_to<char>, my_alloc> my_uset;
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include <tr1/utility>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace tr1;
|
||||
using namespace std::tr1;
|
||||
using std::pair;
|
||||
|
||||
struct blank_class
|
||||
{ };
|
||||
|
|
Loading…
Add table
Reference in a new issue