Home
last modified time | relevance | path

Searched refs:A_int_1 (Results 1 – 7 of 7) sorted by relevance

/external/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/
Dinvoke_rvalue.pass.cpp137 struct A_int_1 struct
139 A_int_1() : data_(5) {} in A_int_1() argument
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 …]
Dinvoke_lvalue.pass.cpp147 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/
Dinvoke.pass.cpp107 struct A_int_1 struct
109 A_int_1() : data_(5) {} in A_int_1() argument
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 …]
Dinvoke.fail.cpp24 struct A_int_1 struct
26 A_int_1() : data_(5) {} in A_int_1() argument
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/
Dinvoke.pass.cpp183 struct A_int_1 struct
185 A_int_1() : data_(5) {} in A_int_1() function
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 …]
Dinvoke.fail.cpp21 struct A_int_1 struct
23 A_int_1() : data_(5) {} in A_int_1() function
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/utilities/tuple/tuple.tuple/tuple.apply/
Dapply_extended_types.pass.cpp40 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 …]