Home
last modified time | relevance | path

Searched refs:f2 (Results 1 – 25 of 110) sorted by relevance

12345

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/bitwise.operations/
Dbit_and.pass.cpp30 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 …]
Dbit_or.pass.cpp30 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 …]
Dbit_not.pass.cpp30 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/
Dlogical_and.pass.cpp29 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 …]
Dlogical_or.pass.cpp29 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 …]
Dlogical_not.pass.cpp27 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/
Dcopy_assign.pass.cpp73 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 …]
Dcopy.pass.cpp73 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 …]
Dalloc_function.pass.cpp75 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/
Dgreater_equal.pass.cpp28 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()
Dless.pass.cpp28 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()
Dless_equal.pass.cpp28 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()
Dgreater.pass.cpp28 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()
Dnot_equal_to.pass.cpp27 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()
Dequal_to.pass.cpp27 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/
Dswap.pass.cpp77 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/
Dswap.pass.cpp76 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/
Dnonmember_swap.pass.cpp34 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()
Dmember_swap.pass.cpp32 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()
Dmove_assign.pass.cpp33 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/
Dmove.pass.cpp33 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/
Ddivides.pass.cpp26 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()
Dplus.pass.cpp26 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()
Dmodulus.pass.cpp26 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()
Dnegate.pass.cpp26 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()

12345