forked from OSchip/llvm-project
parent
00067fb147
commit
3135def61d
libcxx/test/depr/depr.function.objects
depr.adaptors
depr.function.pointer.adaptors
pointer_to_binary_function.pass.cpppointer_to_unary_function.pass.cppptr_fun1.pass.cppptr_fun2.pass.cpp
depr.member.pointer.adaptors
const_mem_fun.pass.cppconst_mem_fun1.pass.cppconst_mem_fun1_ref_t.pass.cppconst_mem_fun1_t.pass.cppconst_mem_fun_ref.pass.cppconst_mem_fun_ref1.pass.cppconst_mem_fun_ref_t.pass.cppconst_mem_fun_t.pass.cppmem_fun.pass.cppmem_fun1.pass.cppmem_fun1_ref_t.pass.cppmem_fun1_t.pass.cppmem_fun_ref.pass.cppmem_fun_ref1.pass.cppmem_fun_ref_t.pass.cppmem_fun_t.pass.cpp
nothing_to_do.pass.cppdepr.base
nothing_to_do.pass.cpp
|
@ -0,0 +1,28 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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 Arg1, class Arg2, class Result>
|
||||
// struct binary_function
|
||||
// {
|
||||
// typedef Arg1 first_argument_type;
|
||||
// typedef Arg2 second_argument_type;
|
||||
// typedef Result result_type;
|
||||
// };
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
|
||||
int main()
|
||||
{
|
||||
static_assert((std::is_same<std::binary_function<int, unsigned, char>::first_argument_type, int>::value), "");
|
||||
static_assert((std::is_same<std::binary_function<int, unsigned, char>::second_argument_type, unsigned>::value), "");
|
||||
static_assert((std::is_same<std::binary_function<int, unsigned, char>::result_type, char>::value), "");
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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 Arg, class Result>
|
||||
// struct unary_function
|
||||
// {
|
||||
// typedef Arg argument_type;
|
||||
// typedef Result result_type;
|
||||
// };
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
|
||||
int main()
|
||||
{
|
||||
static_assert((std::is_same<std::unary_function<unsigned, char>::argument_type, unsigned>::value), "");
|
||||
static_assert((std::is_same<std::unary_function<unsigned, char>::result_type, char>::value), "");
|
||||
}
|
|
@ -7,14 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <functional>
|
||||
|
||||
#include <functional>
|
||||
|
||||
#ifndef _LIBCPP_VERSION
|
||||
#error _LIBCPP_VERSION not defined
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue