summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-08-11 07:04:14 +0000
committerEric Fiselier <eric@efcs.ca>2016-08-11 07:04:14 +0000
commita3e11a5b1596d78ec69e88533ea9e1773cd57496 (patch)
tree01b9a4e73edad75845773eef8c8c243460972406 /libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp
parenta78b768ed42c50d50386316cec7dd48c56087087 (diff)
downloadbcm5719-llvm-a3e11a5b1596d78ec69e88533ea9e1773cd57496.tar.gz
bcm5719-llvm-a3e11a5b1596d78ec69e88533ea9e1773cd57496.zip
Refactor test archetypes implementation.
llvm-svn: 278319
Diffstat (limited to 'libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp b/libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp
index 0598c2da51d..1ef2d9402fc 100644
--- a/libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp
+++ b/libcxx/test/std/utilities/utility/pairs/pairs.pair/U_V.pass.cpp
@@ -22,6 +22,7 @@
#include "archetypes.hpp"
#include "test_convertible.hpp"
+using namespace ImplicitTypes; // Get implicitly archetypes
template <class T1, class T1Arg,
bool CanCopy = true, bool CanConvert = CanCopy>
@@ -58,20 +59,20 @@ int main()
// Test non-const lvalue and rvalue types
test_sfinae<AllCtors, AllCtors&>();
test_sfinae<AllCtors, AllCtors&&>();
- test_sfinae<ExplicitAllCtors, ExplicitAllCtors&, true, false>();
- test_sfinae<ExplicitAllCtors, ExplicitAllCtors&&, true, false>();
+ test_sfinae<ExplicitTypes::AllCtors, ExplicitTypes::AllCtors&, true, false>();
+ test_sfinae<ExplicitTypes::AllCtors, ExplicitTypes::AllCtors&&, true, false>();
test_sfinae<CopyOnly, CopyOnly&>();
test_sfinae<CopyOnly, CopyOnly&&>();
- test_sfinae<ExplicitCopyOnly, ExplicitCopyOnly&, true, false>();
- test_sfinae<ExplicitCopyOnly, ExplicitCopyOnly&&, true, false>();
+ test_sfinae<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&, true, false>();
+ test_sfinae<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&&, true, false>();
test_sfinae<MoveOnly, MoveOnly&, false>();
test_sfinae<MoveOnly, MoveOnly&&>();
- test_sfinae<ExplicitMoveOnly, ExplicitMoveOnly&, false>();
- test_sfinae<ExplicitMoveOnly, ExplicitMoveOnly&&, true, false>();
+ test_sfinae<ExplicitTypes::MoveOnly, ExplicitTypes::MoveOnly&, false>();
+ test_sfinae<ExplicitTypes::MoveOnly, ExplicitTypes::MoveOnly&&, true, false>();
test_sfinae<NonCopyable, NonCopyable&, false>();
test_sfinae<NonCopyable, NonCopyable&&, false>();
- test_sfinae<ExplicitNonCopyable, ExplicitNonCopyable&, false>();
- test_sfinae<ExplicitNonCopyable, ExplicitNonCopyable&&, false>();
+ test_sfinae<ExplicitTypes::NonCopyable, ExplicitTypes::NonCopyable&, false>();
+ test_sfinae<ExplicitTypes::NonCopyable, ExplicitTypes::NonCopyable&&, false>();
}
{
// Test converting types
@@ -79,10 +80,10 @@ int main()
test_sfinae<ConvertingType, const int&>();
test_sfinae<ConvertingType, int&&>();
test_sfinae<ConvertingType, const int&&>();
- test_sfinae<ExplicitConvertingType, int&, true, false>();
- test_sfinae<ExplicitConvertingType, const int&, true, false>();
- test_sfinae<ExplicitConvertingType, int&&, true, false>();
- test_sfinae<ExplicitConvertingType, const int&&, true, false>();
+ test_sfinae<ExplicitTypes::ConvertingType, int&, true, false>();
+ test_sfinae<ExplicitTypes::ConvertingType, const int&, true, false>();
+ test_sfinae<ExplicitTypes::ConvertingType, int&&, true, false>();
+ test_sfinae<ExplicitTypes::ConvertingType, const int&&, true, false>();
}
#if TEST_STD_VER > 11
{ // explicit constexpr test
OpenPOWER on IntegriCloud