summaryrefslogtreecommitdiffstats
path: root/libcxx/test/utilities/function.objects
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/utilities/function.objects')
-rw-r--r--libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_binary_function.pass.cpp26
-rw-r--r--libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_unary_function.pass.cpp26
-rw-r--r--libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun1.pass.cpp25
-rw-r--r--libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun2.pass.cpp25
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_ref_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref1.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_ref_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref1.pass.cpp31
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_t.pass.cpp33
-rw-r--r--libcxx/test/utilities/function.objects/version.pass.cpp20
21 files changed, 0 insertions, 634 deletions
diff --git a/libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_binary_function.pass.cpp b/libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_binary_function.pass.cpp
deleted file mode 100644
index 41c99998cae..00000000000
--- a/libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_binary_function.pass.cpp
+++ /dev/null
@@ -1,26 +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>
-
-// pointer_to_binary_function
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-double binary_f(int i, short j) {return i - j + .75;}
-
-int main()
-{
- typedef std::pointer_to_binary_function<int, short, double> F;
- static_assert((std::is_base_of<std::binary_function<int, short, double>, F>::value), "");
- const F f(binary_f);
- assert(f(36, 27) == 9.75);
-}
diff --git a/libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_unary_function.pass.cpp b/libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_unary_function.pass.cpp
deleted file mode 100644
index 126cf32af43..00000000000
--- a/libcxx/test/utilities/function.objects/function.pointer.adaptors/pointer_to_unary_function.pass.cpp
+++ /dev/null
@@ -1,26 +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>
-
-// pointer_to_unary_function
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-double unary_f(int i) {return 0.5 - i;}
-
-int main()
-{
- typedef std::pointer_to_unary_function<int, double> F;
- static_assert((std::is_base_of<std::unary_function<int, double>, F>::value), "");
- const F f(unary_f);
- assert(f(36) == -35.5);
-}
diff --git a/libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun1.pass.cpp b/libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun1.pass.cpp
deleted file mode 100644
index c7ce90df3eb..00000000000
--- a/libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun1.pass.cpp
+++ /dev/null
@@ -1,25 +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 <CopyConstructible Arg, Returnable Result>
-// pointer_to_unary_function<Arg, Result>
-// ptr_fun(Result (*f)(Arg));
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-double unary_f(int i) {return 0.5 - i;}
-
-int main()
-{
- assert(std::ptr_fun(unary_f)(36) == -35.5);
-}
diff --git a/libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun2.pass.cpp b/libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun2.pass.cpp
deleted file mode 100644
index 17c4b611a31..00000000000
--- a/libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun2.pass.cpp
+++ /dev/null
@@ -1,25 +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 <CopyConstructible Arg1, CopyConstructible Arg2, Returnable Result>
-// pointer_to_binary_function<Arg1,Arg2,Result>
-// ptr_fun(Result (*f)(Arg1, Arg2));
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-double binary_f(int i, short j) {return i - j + .75;}
-
-int main()
-{
- assert(std::ptr_fun(binary_f)(36, 27) == 9.75);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun.pass.cpp
deleted file mode 100644
index 455eed9b3e3..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun.pass.cpp
+++ /dev/null
@@ -1,31 +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<cReturnable S, ClassType T>
-// const_mem_fun_t<S,T>
-// mem_fun(S (T::*f)() const);
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- const A a = A();
- assert(std::mem_fun(&A::a3)(&a) == 1);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1.pass.cpp
deleted file mode 100644
index 46fd6d28d51..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1.pass.cpp
+++ /dev/null
@@ -1,31 +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<Returnable S, ClassType T, CopyConstructible A>
-// const_mem_fun1_t<S,T,A>
-// mem_fun(S (T::*f)(A) const);
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- const A a = A();
- assert(std::mem_fun(&A::a4)(&a, 6) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_ref_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_ref_t.pass.cpp
deleted file mode 100644
index 0c4bb93ff52..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_ref_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// const_mem_fun1_ref_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::const_mem_fun1_ref_t<double, A, unsigned> F;
- static_assert((std::is_base_of<std::binary_function<A, unsigned, double>, F>::value), "");
- const F f(&A::a4);
- const A a = A();
- assert(f(a, 6) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_t.pass.cpp
deleted file mode 100644
index ca670bcde10..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun1_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// const_mem_fun1_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::const_mem_fun1_t<double, A, unsigned> F;
- static_assert((std::is_base_of<std::binary_function<const A*, unsigned, double>, F>::value), "");
- const F f(&A::a4);
- const A a = A();
- assert(f(&a, 6) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref.pass.cpp
deleted file mode 100644
index 74d8950dea7..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref.pass.cpp
+++ /dev/null
@@ -1,31 +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<Returnable S, ClassType T>
-// const_mem_fun_ref_t<S,T>
-// mem_fun_ref(S (T::*f)() const);
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- const A a = A();
- assert(std::mem_fun_ref(&A::a3)(a) == 1);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref1.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref1.pass.cpp
deleted file mode 100644
index b858561ae75..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref1.pass.cpp
+++ /dev/null
@@ -1,31 +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<Returnable S, ClassType T, CopyConstructible A>
-// const_mem_fun1_ref_t<S,T,A>
-// mem_fun_ref(S (T::*f)(A) const);
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- const A a = A();
- assert(std::mem_fun_ref(&A::a4)(a, 6) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref_t.pass.cpp
deleted file mode 100644
index 9eec24e5743..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_ref_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// const_mem_fun_ref_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::const_mem_fun_ref_t<int, A> F;
- static_assert((std::is_base_of<std::unary_function<A, int>, F>::value), "");
- const F f(&A::a3);
- const A a = A();
- assert(f(a) == 1);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_t.pass.cpp
deleted file mode 100644
index 9681b74d7e6..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/const_mem_fun_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// const_mem_fun_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::const_mem_fun_t<int, A> F;
- static_assert((std::is_base_of<std::unary_function<const A*, int>, F>::value), "");
- const F f(&A::a3);
- const A a = A();
- assert(f(&a) == 1);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun.pass.cpp
deleted file mode 100644
index d0d286009ad..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun.pass.cpp
+++ /dev/null
@@ -1,31 +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<Returnable S, ClassType T>
-// mem_fun_t<S,T>
-// mem_fun(S (T::*f)());
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- A a;
- assert(std::mem_fun(&A::a1)(&a) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1.pass.cpp
deleted file mode 100644
index acee9afeec7..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1.pass.cpp
+++ /dev/null
@@ -1,31 +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<Returnable S, ClassType T, CopyConstructible A>
-// mem_fun1_t<S,T,A>
-// mem_fun(S (T::*f)(A));
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- A a;
- assert(std::mem_fun(&A::a2)(&a, 5) == 6);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_ref_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_ref_t.pass.cpp
deleted file mode 100644
index a78cbf25c19..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_ref_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// mem_fun1_ref_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::mem_fun1_ref_t<short, A, int> F;
- static_assert((std::is_base_of<std::binary_function<A, int, short>, F>::value), "");
- const F f(&A::a2);
- A a;
- assert(f(a, 5) == 6);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_t.pass.cpp
deleted file mode 100644
index 90ba9bbf788..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun1_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// mem_fun1_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::mem_fun1_t<short, A, int> F;
- static_assert((std::is_base_of<std::binary_function<A*, int, short>, F>::value), "");
- const F f(&A::a2);
- A a;
- assert(f(&a, 5) == 6);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref.pass.cpp
deleted file mode 100644
index d3843fc5344..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref.pass.cpp
+++ /dev/null
@@ -1,31 +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<Returnable S, ClassType T>
-// mem_fun_ref_t<S,T>
-// mem_fun_ref(S (T::*f)());
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- A a;
- assert(std::mem_fun_ref(&A::a1)(a) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref1.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref1.pass.cpp
deleted file mode 100644
index 39a324d10bc..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref1.pass.cpp
+++ /dev/null
@@ -1,31 +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<Returnable S, ClassType T, CopyConstructible A>
-// mem_fun1_ref_t<S,T,A>
-// mem_fun_ref(S (T::*f)(A));
-
-#include <functional>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- A a;
- assert(std::mem_fun_ref(&A::a2)(a, 5) == 6);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref_t.pass.cpp
deleted file mode 100644
index 236d8d0945f..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_ref_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// mem_fun_ref_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::mem_fun_ref_t<char, A> F;
- static_assert((std::is_base_of<std::unary_function<A, char>, F>::value), "");
- const F f(&A::a1);
- A a;
- assert(f(a) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_t.pass.cpp b/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_t.pass.cpp
deleted file mode 100644
index 3fc84cd05c6..00000000000
--- a/libcxx/test/utilities/function.objects/member.pointer.adaptors/mem_fun_t.pass.cpp
+++ /dev/null
@@ -1,33 +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>
-
-// mem_fun_t
-
-#include <functional>
-#include <type_traits>
-#include <cassert>
-
-struct A
-{
- char a1() {return 5;}
- short a2(int i) {return short(i+1);}
- int a3() const {return 1;}
- double a4(unsigned i) const {return i-1;}
-};
-
-int main()
-{
- typedef std::mem_fun_t<char, A> F;
- static_assert((std::is_base_of<std::unary_function<A*, char>, F>::value), "");
- const F f(&A::a1);
- A a;
- assert(f(&a) == 5);
-}
diff --git a/libcxx/test/utilities/function.objects/version.pass.cpp b/libcxx/test/utilities/function.objects/version.pass.cpp
deleted file mode 100644
index 99d731a7454..00000000000
--- a/libcxx/test/utilities/function.objects/version.pass.cpp
+++ /dev/null
@@ -1,20 +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>
-
-#include <functional>
-
-#ifndef _LIBCPP_VERSION
-#error _LIBCPP_VERSION not defined
-#endif
-
-int main()
-{
-}
OpenPOWER on IntegriCloud