From b15298338ce864b6e5987831992aee111a169410 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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@225381 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../util.smartptr.ownerless/owner_less.pass.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp b/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp index db2ed3bb3..d091ae99f 100644 --- a/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp +++ b/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));