Author: marshall
Date: Tue Jun 7 10:49:39 2016
New Revision: 272018
URL: http://llvm.org/viewvc/llvm-project?rev=272018&view=rev
Log:
Avoid Shadowing warnings in the associative containers tests. Thanks to STL for
the patch.
Modified:
libcxx/trunk/test/std/containers/associative/map/map.special/non_member_swap.pass.cpp
libcxx/trunk/test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp
libcxx/trunk/test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp
libcxx/trunk/test/std/containers/associative/set/set.special/non_member_swap.pass.cpp
Modified:
libcxx/trunk/test/std/containers/associative/map/map.special/non_member_swap.pass.cpp
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.special/non_member_swap.pass.cpp?rev=272018&r1=272017&r2=272018&view=diff
==============================================================================
---
libcxx/trunk/test/std/containers/associative/map/map.special/non_member_swap.pass.cpp
(original)
+++
libcxx/trunk/test/std/containers/associative/map/map.special/non_member_swap.pass.cpp
Tue Jun 7 10:49:39 2016
@@ -98,6 +98,7 @@ int main()
assert(m1 == m2_save);
assert(m2 == m1_save);
}
+ }
{
typedef test_allocator<V> A;
typedef test_compare<std::less<int> > C;
@@ -166,7 +167,6 @@ int main()
assert(m2.key_comp() == C(1));
assert(m2.get_allocator() == A(1));
}
- }
#if __cplusplus >= 201103L
{
typedef std::map<int, double, std::less<int>, min_allocator<V>> M;
@@ -242,6 +242,7 @@ int main()
assert(m1 == m2_save);
assert(m2 == m1_save);
}
+ }
{
typedef min_allocator<V> A;
typedef test_compare<std::less<int> > C;
@@ -276,6 +277,5 @@ int main()
assert(m2.key_comp() == C(1));
assert(m2.get_allocator() == A());
}
- }
#endif
}
Modified:
libcxx/trunk/test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp?rev=272018&r1=272017&r2=272018&view=diff
==============================================================================
---
libcxx/trunk/test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp
(original)
+++
libcxx/trunk/test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp
Tue Jun 7 10:49:39 2016
@@ -98,6 +98,7 @@ int main()
assert(m1 == m2_save);
assert(m2 == m1_save);
}
+ }
{
typedef test_allocator<V> A;
typedef test_compare<std::less<int> > C;
@@ -166,7 +167,6 @@ int main()
assert(m2.key_comp() == C(1));
assert(m2.get_allocator() == A(1));
}
- }
#if __cplusplus >= 201103L
{
typedef std::multimap<int, double, std::less<int>,
min_allocator<std::pair<const int, double>>> M;
@@ -242,6 +242,7 @@ int main()
assert(m1 == m2_save);
assert(m2 == m1_save);
}
+ }
{
typedef min_allocator<V> A;
typedef test_compare<std::less<int> > C;
@@ -276,6 +277,5 @@ int main()
assert(m2.key_comp() == C(1));
assert(m2.get_allocator() == A());
}
- }
#endif
}
Modified:
libcxx/trunk/test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp?rev=272018&r1=272017&r2=272018&view=diff
==============================================================================
---
libcxx/trunk/test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp
(original)
+++
libcxx/trunk/test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp
Tue Jun 7 10:49:39 2016
@@ -21,6 +21,7 @@
int main()
{
typedef int V;
+ {
typedef std::multiset<int> M;
{
M m1;
@@ -94,6 +95,7 @@ int main()
assert(m1 == m2_save);
assert(m2 == m1_save);
}
+ }
{
typedef test_allocator<V> A;
typedef test_compare<std::less<int> > C;
Modified:
libcxx/trunk/test/std/containers/associative/set/set.special/non_member_swap.pass.cpp
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/set/set.special/non_member_swap.pass.cpp?rev=272018&r1=272017&r2=272018&view=diff
==============================================================================
---
libcxx/trunk/test/std/containers/associative/set/set.special/non_member_swap.pass.cpp
(original)
+++
libcxx/trunk/test/std/containers/associative/set/set.special/non_member_swap.pass.cpp
Tue Jun 7 10:49:39 2016
@@ -21,6 +21,7 @@
int main()
{
typedef int V;
+ {
typedef std::set<int> M;
{
M m1;
@@ -94,6 +95,7 @@ int main()
assert(m1 == m2_save);
assert(m2 == m1_save);
}
+ }
{
typedef test_allocator<V> A;
typedef test_compare<std::less<int> > C;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits