Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 78) sorted by relevance

1234

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/default.allocator/allocator.members/
Dconstruct.pass.cpp84 A* ap = a.allocate(3); in main() local
88 a.construct(ap); in main()
92 a.destroy(ap); in main()
96 a.construct(ap, A()); in main()
100 a.destroy(ap); in main()
104 a.construct(ap, 5); in main()
108 a.destroy(ap); in main()
112 a.construct(ap, 5, (int*)0); in main()
116 a.destroy(ap); in main()
120 a.deallocate(ap, 3); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/
Dreset.pass.cpp26 std::auto_ptr<A> ap(p); in test() local
27 ap.reset(); in test()
28 assert(ap.get() == 0); in test()
34 std::auto_ptr<A> ap(p); in test() local
35 ap.reset(p); in test()
36 assert(ap.get() == p); in test()
42 std::auto_ptr<A> ap(p); in test() local
44 ap.reset(p2); in test()
45 assert(ap.get() == p2); in test()
Darrow.pass.cpp26 std::auto_ptr<A> ap(p); in test() local
27 assert(ap->id() == 1); in test()
28 *ap = A(3); in test()
29 assert(ap->id() == 3); in test()
Dderef.pass.cpp26 const std::auto_ptr<A> ap(p); in test() local
27 assert((*ap).id() == 1); in test()
28 *ap = A(3); in test()
29 assert((*ap).id() == 3); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/func.memfn/
Dmember_function.pass.cpp32 A* ap = &a; in test0() local
33 assert(f(ap) == 'a'); in test0()
35 assert(cf(ap) == 'a'); in test0()
46 A* ap = &a; in test1() local
47 assert(f(ap, 2) == 'b'); in test1()
49 assert(cf(ap, 2) == 'b'); in test1()
60 A* ap = &a; in test2() local
61 assert(f(ap, 2, 3.5) == 'c'); in test2()
63 assert(cf(ap, 2, 3.5) == 'c'); in test2()
Dmember_function_const_volatile.pass.cpp32 A* ap = &a; in test0() local
33 assert(f(ap) == 'a'); in test0()
37 assert(cf(ap) == 'a'); in test0()
48 A* ap = &a; in test1() local
49 assert(f(ap, 2) == 'b'); in test1()
53 assert(cf(ap, 2) == 'b'); in test1()
64 A* ap = &a; in test2() local
65 assert(f(ap, 2, 3.5) == 'c'); in test2()
69 assert(cf(ap, 2, 3.5) == 'c'); in test2()
Dmember_function_const.pass.cpp32 A* ap = &a; in test0() local
33 assert(f(ap) == 'a'); in test0()
37 assert(cf(ap) == 'a'); in test0()
48 A* ap = &a; in test1() local
49 assert(f(ap, 2) == 'b'); in test1()
53 assert(cf(ap, 2) == 'b'); in test1()
64 A* ap = &a; in test2() local
65 assert(f(ap, 2, 3.5) == 'c'); in test2()
69 assert(cf(ap, 2, 3.5) == 'c'); in test2()
Dmember_function_volatile.pass.cpp32 A* ap = &a; in test0() local
33 assert(f(ap) == 'a'); in test0()
37 assert(cf(ap) == 'a'); in test0()
48 A* ap = &a; in test1() local
49 assert(f(ap, 2) == 'b'); in test1()
53 assert(cf(ap, 2) == 'b'); in test1()
64 A* ap = &a; in test2() local
65 assert(f(ap, 2, 3.5) == 'c'); in test2()
69 assert(cf(ap, 2, 3.5) == 'c'); in test2()
Dmember_data.pass.cpp30 A* ap = &a; in test() local
31 f(ap) = 6; in test()
33 const A* cap = ap; in test()
34 assert(f(cap) == f(ap)); in test()
36 assert(cf(ap) == f(ap)); in test()
/ndk/sources/android/support/src/musl-locale/
Dstrfmon.c7 static ssize_t vstrfmon_l(char *s, size_t n, locale_t loc, const char *fmt, va_list ap) in vstrfmon_l() argument
65 x = va_arg(ap, double); in vstrfmon_l()
79 va_list ap; in strfmon_l() local
82 va_start(ap, fmt); in strfmon_l()
83 ret = vstrfmon_l(s, n, loc, fmt, ap); in strfmon_l()
84 va_end(ap); in strfmon_l()
92 va_list ap; in strfmon() local
95 va_start(ap, fmt); in strfmon()
96 ret = vstrfmon_l(s, n, 0, fmt, ap); in strfmon()
97 va_end(ap); in strfmon()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/refwrap/refwrap.invoke/
Dinvoke.pass.cpp80 A_void_1* ap = &a; in test_void_1() local
81 r1(ap); in test_void_1()
93 A_void_1* ap = &a; in test_void_1() local
94 r1(ap); in test_void_1()
149 A_int_1* ap = &a; in test_int_1() local
150 assert(r1(ap) == 3); in test_int_1()
158 A_int_1* ap = &a; in test_int_1() local
159 assert(r1(ap) == 4); in test_int_1()
169 A_int_1* ap = &a; in test_int_1() local
170 assert(r1(ap) == 6); in test_int_1()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.inv/
Dinvoke.pass.cpp77 A_void_1* ap = &a; in test_void_1() local
79 r2(ap); in test_void_1()
92 A_void_1* ap = &a; in test_void_1() local
93 r2(ap); in test_void_1()
149 A_int_1* ap = &a; in test_int_1() local
150 assert(r2(ap) == 3); in test_int_1()
159 A_int_1* ap = &a; in test_int_1() local
160 assert(r2(ap) == 4); in test_int_1()
171 A_int_1* ap = &a; in test_int_1() local
172 assert(r2(ap) == 6); in test_int_1()
[all …]
/ndk/sources/android/support/src/stdio/
Dscanf.c41 va_list ap; in scanf() local
43 va_start(ap, fmt); in scanf()
44 ret = vfscanf(stdin, fmt, ap); in scanf()
45 va_end(ap); in scanf()
Dvfwprintf.c147 static void pop_arg(union arg *arg, int type, va_list *ap) in pop_arg() argument
152 case PTR: arg->p = va_arg(*ap, void *); in pop_arg()
153 break; case INT: arg->i = va_arg(*ap, int); in pop_arg()
154 break; case UINT: arg->i = va_arg(*ap, unsigned int); in pop_arg()
156 break; case LONG: arg->i = va_arg(*ap, long); in pop_arg()
157 break; case ULONG: arg->i = va_arg(*ap, unsigned long); in pop_arg()
159 break; case ULLONG: arg->i = va_arg(*ap, unsigned long long); in pop_arg()
160 break; case SHORT: arg->i = (short)va_arg(*ap, int); in pop_arg()
161 break; case USHORT: arg->i = (unsigned short)va_arg(*ap, int); in pop_arg()
162 break; case CHAR: arg->i = (signed char)va_arg(*ap, int); in pop_arg()
[all …]
Dfscanf.c41 va_list ap; in fscanf() local
43 va_start(ap, fmt); in fscanf()
44 ret = vfscanf(fp, fmt, ap); in fscanf()
45 va_end(ap); in fscanf()
/ndk/sources/android/support/src/musl-stdio/
Dprintf.c7 va_list ap; in printf() local
8 va_start(ap, fmt); in printf()
9 ret = vfprintf(stdout, fmt, ap); in printf()
10 va_end(ap); in printf()
Dwprintf.c8 va_list ap; in wprintf() local
9 va_start(ap, fmt); in wprintf()
10 ret = vwprintf(fmt, ap); in wprintf()
11 va_end(ap); in wprintf()
Dsprintf.c7 va_list ap; in sprintf() local
8 va_start(ap, fmt); in sprintf()
9 ret = vsprintf(s, fmt, ap); in sprintf()
10 va_end(ap); in sprintf()
Dwscanf.c9 va_list ap; in wscanf() local
10 va_start(ap, fmt); in wscanf()
11 ret = vwscanf(fmt, ap); in wscanf()
12 va_end(ap); in wscanf()
Dsnprintf.c7 va_list ap; in snprintf() local
8 va_start(ap, fmt); in snprintf()
9 ret = vsnprintf(s, n, fmt, ap); in snprintf()
10 va_end(ap); in snprintf()
Dswprintf.c7 va_list ap; in swprintf() local
8 va_start(ap, fmt); in swprintf()
9 ret = vswprintf(s, n, fmt, ap); in swprintf()
10 va_end(ap); in swprintf()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/bind/func.bind/func.bind.bind/
Dinvoke_lvalue.pass.cpp97 A_void_1* ap = &a; in test_void_1() local
98 std::bind(fp, _1)(ap); in test_void_1()
108 A_void_1* ap = &a; in test_void_1() local
109 std::bind(fp, ap)(); in test_void_1()
120 A_void_1* ap = &a; in test_void_1() local
121 std::bind(fp, _1)(ap); in test_void_1()
131 A_void_1* ap = &a; in test_void_1() local
132 std::bind(fp, ap)(); in test_void_1()
186 A_int_1* ap = &a; in test_int_1() local
187 assert(std::bind(&A_int_1::mem1, _1)(ap) == 3); in test_int_1()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
Dauto_pointer01.fail.cpp46 std::auto_ptr<B> ap(p); in main() local
47 std::unique_ptr<A> up(ap); in main()
49 assert(ap.get() == 0); in main()
57 std::auto_ptr<B> ap(p); in main() local
59 up = ap; in main()
61 assert(ap.get() == 0); in main()
Dauto_pointer.pass.cpp46 std::auto_ptr<B> ap(p); in main() local
47 std::unique_ptr<A> up(std::move(ap)); in main()
49 assert(ap.get() == 0); in main()
57 std::auto_ptr<B> ap(p); in main() local
59 up = std::move(ap); in main()
61 assert(ap.get() == 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/
Dpointer.pass.cpp26 std::auto_ptr<A> ap(p); in test() local
27 assert(ap.get() == p); in test()
32 std::auto_ptr<A> ap; in test() local
33 assert(ap.get() == 0); in test()

1234