From 842b4aecf87856a90cfcb4e3fa14fdb1dff32fcc Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 7 Jan 2015 20:54:51 +0000 Subject: [PATCH] Add tests to check the typedefs from the result of std::owner_less llvm-svn: 225381 --- .../util.smartptr.ownerless/owner_less.pass.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp index db2ed3b..d091ae9 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp @@ -47,6 +47,10 @@ int main() typedef std::owner_less > CS; CS cs; + static_assert((std::is_same, CS::first_argument_type>::value), "" ); + static_assert((std::is_same, CS::second_argument_type>::value), "" ); + static_assert((std::is_same::value), "" ); + assert(!cs(p1, p2)); assert(!cs(p2, p1)); assert(cs(p1 ,p3) || cs(p3, p1)); @@ -61,6 +65,10 @@ int main() typedef std::owner_less > CS; CS cs; + static_assert((std::is_same, CS::first_argument_type>::value), "" ); + static_assert((std::is_same, CS::second_argument_type>::value), "" ); + static_assert((std::is_same::value), "" ); + assert(!cs(w1, w2)); assert(!cs(w2, w1)); assert(cs(w1, w3) || cs(w3, w1)); -- 2.7.4