/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/bitwise.operations/ |
D | bit_and.pass.cpp | 30 const F2 f2 = F2(); in main() local 31 assert(f2(0xEA95, 0xEA95) == 0xEA95); in main() 32 assert(f2(0xEA95L, 0xEA95) == 0xEA95); in main() 33 assert(f2(0xEA95, 0xEA95L) == 0xEA95); in main() 35 assert(f2(0xEA95, 0x58D3) == 0x4891); in main() 36 assert(f2(0xEA95L, 0x58D3) == 0x4891); in main() 37 assert(f2(0xEA95, 0x58D3L) == 0x4891); in main() 39 assert(f2(0x58D3, 0xEA95) == 0x4891); in main() 40 assert(f2(0x58D3L, 0xEA95) == 0x4891); in main() 41 assert(f2(0x58D3, 0xEA95L) == 0x4891); in main() [all …]
|
D | bit_or.pass.cpp | 30 const F2 f2 = F2(); in main() local 31 assert(f2(0xEA95, 0xEA95) == 0xEA95); in main() 32 assert(f2(0xEA95L, 0xEA95) == 0xEA95); in main() 33 assert(f2(0xEA95, 0xEA95L) == 0xEA95); in main() 35 assert(f2(0xEA95, 0x58D3) == 0xFAD7); in main() 36 assert(f2(0xEA95L, 0x58D3) == 0xFAD7); in main() 37 assert(f2(0xEA95, 0x58D3L) == 0xFAD7); in main() 39 assert(f2(0x58D3, 0xEA95) == 0xFAD7); in main() 40 assert(f2(0x58D3L, 0xEA95) == 0xFAD7); in main() 41 assert(f2(0x58D3, 0xEA95L) == 0xFAD7); in main() [all …]
|
D | bit_not.pass.cpp | 30 const F2 f2 = F2(); in main() local 31 assert((f2(0xEA95) & 0xFFFF ) == 0x156A); in main() 32 assert((f2(0xEA95L) & 0xFFFF ) == 0x156A); in main() 33 assert((f2(0x58D3) & 0xFFFF ) == 0xA72C); in main() 34 assert((f2(0x58D3L) & 0xFFFF ) == 0xA72C); in main() 35 assert((f2(0) & 0xFFFF ) == 0xFFFF); in main() 36 assert((f2(0L) & 0xFFFF ) == 0xFFFF); in main() 37 assert((f2(0xFFFF) & 0xFFFF ) == 0); in main() 38 assert((f2(0xFFFFL) & 0xFFFF ) == 0); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/logical.operations/ |
D | logical_and.pass.cpp | 29 const F2 f2 = F2(); in main() local 30 assert( f2(36, 36)); in main() 31 assert( f2(36, 36L)); in main() 32 assert( f2(36L, 36)); in main() 33 assert(!f2(36, 0)); in main() 34 assert(!f2(0, 36)); in main() 35 assert( f2(36, 36L)); in main() 36 assert(!f2(36, 0L)); in main() 37 assert(!f2(0, 36L)); in main() 38 assert( f2(36L, 36)); in main() [all …]
|
D | logical_or.pass.cpp | 29 const F2 f2 = F2(); in main() local 30 assert( f2(36, 36)); in main() 31 assert( f2(36, 36L)); in main() 32 assert( f2(36L, 36)); in main() 33 assert( f2(36, 0)); in main() 34 assert( f2(0, 36)); in main() 35 assert( f2(36, 0L)); in main() 36 assert( f2(0, 36L)); in main() 37 assert(!f2(0, 0)); in main() 38 assert(!f2(0, 0L)); in main() [all …]
|
D | logical_not.pass.cpp | 27 const F2 f2 = F2(); in main() local 28 assert(!f2(36)); in main() 29 assert( f2(0)); in main() 30 assert(!f2(36L)); in main() 31 assert( f2(0L)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
D | copy_assign.pass.cpp | 73 std::function<int(int)> f2; in main() local 74 f2 = f; in main() 77 assert(f2.target<A>()); in main() 78 assert(f2.target<int(*)(int)>() == 0); in main() 87 std::function<int(int)> f2; in main() local 88 f2 = f; in main() 90 assert(f2.target<int(*)(int)>()); in main() 91 assert(f2.target<A>() == 0); in main() 99 std::function<int(int)> f2; in main() local 100 f2 = f; in main() [all …]
|
D | copy.pass.cpp | 73 std::function<int(int)> f2 = f; in main() local 76 assert(f2.target<A>()); in main() 77 assert(f2.target<int(*)(int)>() == 0); in main() 86 std::function<int(int)> f2 = f; in main() local 88 assert(f2.target<int(*)(int)>()); in main() 89 assert(f2.target<A>() == 0); in main() 97 std::function<int(int)> f2 = f; in main() local 99 assert(f2.target<int(*)(int)>() == 0); in main() 100 assert(f2.target<A>() == 0); in main() 110 std::function<int(int)> f2 = std::move(f); in main() local [all …]
|
D | alloc_function.pass.cpp | 75 std::function<int(int)> f2(std::allocator_arg, test_allocator<A>(), f); in main() local 78 assert(f2.target<A>()); in main() 79 assert(f2.target<int(*)(int)>() == 0); in main() 88 std::function<int(int)> f2(std::allocator_arg, test_allocator<int(*)(int)>(), f); in main() 90 assert(f2.target<int(*)(int)>()); in main() 91 assert(f2.target<A>() == 0); in main() 97 std::function<int(int)> f2(std::allocator_arg, al, g); in main() local 99 assert(f2.target<int(*)(int)>()); in main() 100 assert(f2.target<A>() == 0); in main() 108 std::function<int(int)> f2(std::allocator_arg, test_allocator<int>(), f); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/comparisons/ |
D | greater_equal.pass.cpp | 28 const F2 f2 = F2(); in main() local 29 assert(f2(36, 36)); in main() 30 assert(f2(36, 6)); in main() 31 assert(!f2(6, 36)); in main() 32 assert( f2(36, 6.0)); in main() 33 assert( f2(36.0, 6)); in main() 34 assert(!f2(6, 36.0)); in main() 35 assert(!f2(6.0, 36)); in main()
|
D | less.pass.cpp | 28 const F2 f2 = F2(); in main() local 29 assert(!f2(36, 36)); in main() 30 assert(!f2(36, 6)); in main() 31 assert( f2(6, 36)); in main() 32 assert(!f2(36, 6.0)); in main() 33 assert(!f2(36.0, 6)); in main() 34 assert( f2(6, 36.0)); in main() 35 assert( f2(6.0, 36)); in main()
|
D | less_equal.pass.cpp | 28 const F2 f2 = F2(); in main() local 29 assert( f2(36, 36)); in main() 30 assert(!f2(36, 6)); in main() 31 assert( f2(6, 36)); in main() 32 assert(!f2(36, 6.0)); in main() 33 assert(!f2(36.0, 6)); in main() 34 assert( f2(6, 36.0)); in main() 35 assert( f2(6.0, 36)); in main()
|
D | greater.pass.cpp | 28 const F2 f2 = F2(); in main() local 29 assert(!f2(36, 36)); in main() 30 assert(f2(36, 6)); in main() 31 assert(!f2(6, 36)); in main() 32 assert( f2(36, 6.0)); in main() 33 assert( f2(36.0, 6)); in main() 34 assert(!f2(6, 36.0)); in main() 35 assert(!f2(6.0, 36)); in main()
|
D | not_equal_to.pass.cpp | 27 const F2 f2 = F2(); in main() local 28 assert(!f2(36, 36)); in main() 29 assert( f2(36, 6)); in main() 30 assert( f2(36, 6.0)); in main() 31 assert( f2(36.0, 6)); in main() 32 assert(!f2(36.0, 36)); in main() 33 assert(!f2(36, 36.0)); in main()
|
D | equal_to.pass.cpp | 27 const F2 f2 = F2(); in main() local 28 assert(f2(36, 36)); in main() 29 assert(!f2(36, 6)); in main() 30 assert(f2(36, 36.0)); in main() 31 assert(f2(36.0, 36L)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/ |
D | swap.pass.cpp | 77 std::function<int(int)> f2 = A(2); in main() local 81 assert(f2.target<A>()->id() == 2); in main() 82 swap(f1, f2); in main() 86 assert(f2.target<A>()->id() == 1); in main() 92 std::function<int(int)> f2 = g; in main() local 96 assert(*f2.target<int(*)(int)>() == g); in main() 97 swap(f1, f2); in main() 101 assert(f2.target<A>()->id() == 1); in main() 107 std::function<int(int)> f2 = A(1); in main() local 111 assert(f2.target<A>()->id() == 1); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/ |
D | swap.pass.cpp | 76 std::function<int(int)> f2 = A(2); in main() local 80 assert(f2.target<A>()->id() == 2); in main() 81 f1.swap(f2); in main() 85 assert(f2.target<A>()->id() == 1); in main() 91 std::function<int(int)> f2 = g; in main() local 95 assert(*f2.target<int(*)(int)>() == g); in main() 96 f1.swap(f2); in main() 100 assert(f2.target<A>()->id() == 1); in main() 106 std::function<int(int)> f2 = A(1); in main() local 110 assert(f2.target<A>()->id() == 1); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/filebuf.assign/ |
D | nonmember_swap.pass.cpp | 34 std::filebuf f2; in main() local 35 swap(f2, f); in main() 37 assert(f2.is_open()); in main() 38 assert(f2.sgetc() == '2'); in main() 49 std::wfilebuf f2; in main() local 50 swap(f2, f); in main() 52 assert(f2.is_open()); in main() 53 assert(f2.sgetc() == L'2'); in main()
|
D | member_swap.pass.cpp | 32 std::filebuf f2; in main() local 33 f2.swap(f); in main() 35 assert(f2.is_open()); in main() 36 assert(f2.sgetc() == '2'); in main() 47 std::wfilebuf f2; in main() local 48 f2.swap(f); in main() 50 assert(f2.is_open()); in main() 51 assert(f2.sgetc() == L'2'); in main()
|
D | move_assign.pass.cpp | 33 std::filebuf f2; in main() local 34 f2 = move(f); in main() 36 assert(f2.is_open()); in main() 37 assert(f2.sgetc() == '2'); in main() 48 std::wfilebuf f2; in main() local 49 f2 = move(f); in main() 51 assert(f2.is_open()); in main() 52 assert(f2.sgetc() == L'2'); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/filebuf.cons/ |
D | move.pass.cpp | 33 std::filebuf f2(move(f)); in main() local 35 assert(f2.is_open()); in main() 36 assert(f2.sgetc() == '2'); in main() 47 std::wfilebuf f2(move(f)); in main() local 49 assert(f2.is_open()); in main() 50 assert(f2.sgetc() == L'2'); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/arithmetic.operations/ |
D | divides.pass.cpp | 26 const F2 f2 = F2(); in main() local 27 assert(f2(36, 4) == 9); in main() 28 assert(f2(36.0, 4) == 9); in main() 29 assert(f2(18, 4.0) == 4.5); // exact in binary in main()
|
D | plus.pass.cpp | 26 const F2 f2 = F2(); in main() local 27 assert(f2(3,2) == 5); in main() 28 assert(f2(3.0, 2) == 5); in main() 29 assert(f2(3, 2.5) == 5.5); in main()
|
D | modulus.pass.cpp | 26 const F2 f2 = F2(); in main() local 27 assert(f2(36, 8) == 4); in main() 28 assert(f2(36L, 8) == 4); in main() 29 assert(f2(36, 8L) == 4); in main()
|
D | negate.pass.cpp | 26 const F2 f2 = F2(); in main() local 27 assert(f2(36) == -36); in main() 28 assert(f2(36L) == -36); in main() 29 assert(f2(36.0) == -36); in main()
|