+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
// 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()
// 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()
// 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()
#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) )
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
#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
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
+using std::pair;
int
main()
#include <tr1/utility>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
+using std::pair;
// libstdc++/23978
void test01()
#include <tr1/functional>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
struct foo
{ };
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
{
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;
#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,
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;
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;
#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,
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;
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;
#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>,
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>
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>
#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>,
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;
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;
#include <tr1/utility>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
+using std::pair;
struct blank_class
{ };