/external/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/ |
D | invoke_rvalue.pass.cpp | 137 struct A_int_1 struct 139 A_int_1() : data_(5) {} in A_int_1() function 167 assert(std::bind(A_int_1(), _1)(4) == 3); in test_int_1() argument 168 assert(std::bind(A_int_1(), 4)() == 3); in test_int_1() 172 assert(std::bind(&A_int_1::mem1, _1)(A_int_1()) == 3); in test_int_1() 173 assert(std::bind(&A_int_1::mem1, A_int_1())() == 3); in test_int_1() 174 A_int_1 a; in test_int_1() 175 assert(std::bind(&A_int_1::mem1, _1)(&a) == 3); in test_int_1() 176 assert(std::bind(&A_int_1::mem1, &a)() == 3); in test_int_1() 180 assert(std::bind(&A_int_1::mem2, _1)(A_int_1()) == 4); in test_int_1() [all …]
|
D | invoke_lvalue.pass.cpp | 147 struct A_int_1 struct 149 A_int_1() : data_(5) {} in A_int_1() function 180 assert(std::bind(A_int_1(), _1)(i) == 3); in test_int_1() argument 181 assert(std::bind(A_int_1(), i)() == 3); in test_int_1() 185 A_int_1 a; in test_int_1() 186 assert(std::bind(&A_int_1::mem1, _1)(a) == 3); in test_int_1() 187 assert(std::bind(&A_int_1::mem1, a)() == 3); in test_int_1() 188 A_int_1* ap = &a; in test_int_1() 189 assert(std::bind(&A_int_1::mem1, _1)(ap) == 3); in test_int_1() 190 assert(std::bind(&A_int_1::mem1, ap)() == 3); in test_int_1() [all …]
|
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/ |
D | invoke.pass.cpp | 107 struct A_int_1 struct 109 A_int_1() : data_(5) {} in A_int_1() function 138 A_int_1 a0; in test_int_1() argument 139 std::reference_wrapper<A_int_1> r1(a0); in test_int_1() 145 int (A_int_1::*fp)() = &A_int_1::mem1; in test_int_1() 146 std::reference_wrapper<int (A_int_1::*)()> r1(fp); in test_int_1() 147 A_int_1 a; in test_int_1() 149 A_int_1* ap = &a; in test_int_1() 154 int (A_int_1::*fp)() const = &A_int_1::mem2; in test_int_1() 155 std::reference_wrapper<int (A_int_1::*)() const> r1(fp); in test_int_1() [all …]
|
D | invoke.fail.cpp | 24 struct A_int_1 struct 26 A_int_1() : data_(5) {} in A_int_1() function 36 int A_int_1::*fp = &A_int_1::data_; in test_int_1() argument 37 std::reference_wrapper<int A_int_1::*> r1(fp); in test_int_1() 38 A_int_1 a; in test_int_1() 42 const A_int_1* ap = &a; in test_int_1()
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.inv/ |
D | invoke.pass.cpp | 183 struct A_int_1 struct 185 A_int_1() : data_(5) {} in A_int_1() argument 214 A_int_1 a0; in test_int_1() argument 221 int (A_int_1::*fp)() = &A_int_1::mem1; in test_int_1() 222 std::function<int (A_int_1)> r1(fp); in test_int_1() 223 A_int_1 a; in test_int_1() 225 std::function<int (A_int_1*)> r2(fp); in test_int_1() 226 A_int_1* ap = &a; in test_int_1() 231 int (A_int_1::*fp)() const = &A_int_1::mem2; in test_int_1() 232 std::function<int (A_int_1)> r1(fp); in test_int_1() [all …]
|
D | invoke.fail.cpp | 21 struct A_int_1 struct 23 A_int_1() : data_(5) {} in A_int_1() argument 33 int A_int_1::*fp = &A_int_1::data_; in test_int_1() argument 34 A_int_1 a; in test_int_1() 35 std::function<int& (const A_int_1*)> r2(fp); in test_int_1() 36 const A_int_1* ap = &a; in test_int_1()
|
/external/libcxx/test/std/experimental/utilities/tuple/tuple.apply/ |
D | extended_types.pass.cpp | 40 struct A_int_1 struct 42 A_int_1() {} in A_int_1() argument 43 A_int_1(int) {} in A_int_1() argument 67 typedef A_wrap<A_int_1> A_wrap_1; argument 79 typedef A_base<A_int_1> A_base_1; 205 typedef A_int_1 T; in test_ext_int_1() 389 std::tuple<A_int_1 &, int>, std::tuple<A_int_1 const &, int> in main() 390 , std::tuple<A_int_1 *, int>, std::tuple<A_int_1 const *, int> in main() 395 std::tuple<A_int_1, int>, std::tuple<A_int_1 const, int> in main() 396 , std::tuple<A_int_1 *, int>, std::tuple<A_int_1 const *, int> in main() [all …]
|
D | constexpr_types.pass.cpp | 32 struct A_int_1 struct 34 constexpr A_int_1() {} in A_int_1() argument 85 constexpr A_int_1 fn; in test_1()
|
D | types.pass.cpp | 77 struct A_int_1 struct 79 A_int_1() {} in A_int_1() function 304 A_int_1 fn; in test_int_1() 312 A_int_1 const a; in test_int_1()
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
D | apply_extended_types.pass.cpp | 40 struct A_int_1 struct 42 A_int_1() {} in A_int_1() function 43 A_int_1(int) {} in A_int_1() function 67 typedef A_wrap<A_int_1> A_wrap_1; argument 79 typedef A_base<A_int_1> A_base_1; 204 typedef A_int_1 T; in test_ext_int_1() 388 std::tuple<A_int_1 &, int>, std::tuple<A_int_1 const &, int> in main() 389 , std::tuple<A_int_1 *, int>, std::tuple<A_int_1 const *, int> in main() 394 std::tuple<A_int_1, int>, std::tuple<A_int_1 const, int> in main() 395 , std::tuple<A_int_1 *, int>, std::tuple<A_int_1 const *, int> in main() [all …]
|