diff options
Diffstat (limited to 'libcxx/test/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp')
| -rw-r--r-- | libcxx/test/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/libcxx/test/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp b/libcxx/test/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp deleted file mode 100644 index 7f8dd4a98d2b..000000000000 --- a/libcxx/test/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// <functional> - -// template<class T> struct is_bind_expression - -#include <functional> - -template <bool Expected, class T> -void -test(const T&) -{ - static_assert(std::is_bind_expression<T>::value == Expected, ""); -} - -struct C {}; - -int main() -{ - test<true>(std::bind(C())); - test<true>(std::bind(C(), std::placeholders::_2)); - test<true>(std::bind<int>(C())); - test<false>(1); - test<false>(std::placeholders::_2); -} |
