Home
last modified time | relevance | path

Searched refs:l2 (Results 1 – 25 of 58) sorted by relevance

123

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock.algorithm/
Dtry_lock.pass.cpp127 L0 l2; in main() local
128 assert(std::try_lock(l0, l1, l2) == -1); in main()
131 assert(l2.locked()); in main()
136 L1 l2; in main() local
137 assert(std::try_lock(l0, l1, l2) == 0); in main()
140 assert(!l2.locked()); in main()
145 L2 l2; in main() local
148 std::try_lock(l0, l1, l2); in main()
155 assert(!l2.locked()); in main()
161 L2 l2; in main() local
[all …]
Dlock.pass.cpp184 L0 l2; in main() local
185 std::lock(l0, l1, l2); in main()
188 assert(l2.locked()); in main()
193 L2 l2; in main() local
196 std::lock(l0, l1, l2); in main()
203 assert(!l2.locked()); in main()
209 L1 l2; in main() local
210 std::lock(l0, l1, l2); in main()
213 assert(l2.locked()); in main()
218 L0 l2; in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.ops/
Dsplice_pos_list.pass.cpp29 std::list<int> l2; in main() local
30 l1.splice(l1.end(), l2); in main()
33 assert(l2.size() == 0); in main()
34 assert(distance(l2.begin(), l2.end()) == 0); in main()
38 std::list<int> l2(a2, a2+1); in main() local
39 l1.splice(l1.end(), l2); in main()
42 assert(l2.size() == 0); in main()
43 assert(distance(l2.begin(), l2.end()) == 0); in main()
49 std::list<int> l2(a2, a2+2); in main() local
50 l1.splice(l1.end(), l2); in main()
[all …]
Dsplice_pos_list_iter.pass.cpp29 std::list<int> l2(a2, a2+1); in main() local
30 l1.splice(l1.end(), l2, l2.begin()); in main()
33 assert(l2.size() == 0); in main()
34 assert(distance(l2.begin(), l2.end()) == 0); in main()
40 std::list<int> l2(a2, a2+2); in main() local
41 l1.splice(l1.end(), l2, l2.begin()); in main()
44 assert(l2.size() == 1); in main()
45 assert(distance(l2.begin(), l2.end()) == 1); in main()
48 i = l2.begin(); in main()
53 std::list<int> l2(a2, a2+2); in main() local
[all …]
Dsplice_pos_list_iter_iter.pass.cpp65 std::list<int> l2(a2, a2+3); in main() local
66 l1.splice(l1.begin(), l2, next(l2.begin()), l2.end()); in main()
79 assert(l2.size() == 1); in main()
80 i = l2.begin(); in main()
85 std::list<int> l2(a2, a2+3); in main() local
86 l1.splice(next(l1.begin()), l2, next(l2.begin()), l2.end()); in main()
99 assert(l2.size() == 1); in main()
100 i = l2.begin(); in main()
105 std::list<int> l2(a2, a2+3); in main() local
106 l1.splice(l1.end(), l2, next(l2.begin()), l2.end()); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.cons/
Dassign_copy.pass.cpp23 std::list<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main()
24 l2 = l; in main()
25 assert(l2 == l); in main()
26 assert(l2.get_allocator() == test_allocator<int>(3)); in main()
30 std::list<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main()
31 l2 = l; in main()
32 assert(l2 == l); in main()
33 assert(l2.get_allocator() == other_allocator<int>(5)); in main()
38 std::list<int, min_allocator<int> > l2(l, min_allocator<int>()); in main()
39 l2 = l; in main()
[all …]
Dcopy.pass.cpp24 std::list<int> l2 = l; in main() local
25 assert(l2 == l); in main()
29 std::list<int, test_allocator<int> > l2 = l; in main() local
30 assert(l2 == l); in main()
31 assert(l2.get_allocator() == l.get_allocator()); in main()
36 std::list<int, other_allocator<int> > l2 = l; in main() local
37 assert(l2 == l); in main()
38 assert(l2.get_allocator() == other_allocator<int>(-2)); in main()
44 std::list<int, min_allocator<int>> l2 = l; in main() local
45 assert(l2 == l); in main()
[all …]
Dcopy_alloc.pass.cpp24 std::list<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main()
25 assert(l2 == l); in main()
26 assert(l2.get_allocator() == test_allocator<int>(3)); in main()
30 std::list<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main()
31 assert(l2 == l); in main()
32 assert(l2.get_allocator() == other_allocator<int>(3)); in main()
37 std::list<int, min_allocator<int> > l2(l, min_allocator<int>()); in main()
38 assert(l2 == l); in main()
39 assert(l2.get_allocator() == min_allocator<int>()); in main()
Dassign_move.pass.cpp31 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local
32 l2 = std::move(l); in main()
33 assert(l2 == lo); in main()
35 assert(l2.get_allocator() == lo.get_allocator()); in main()
45 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local
46 l2 = std::move(l); in main()
47 assert(l2 == lo); in main()
49 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
59 std::list<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main() local
60 l2 = std::move(l); in main()
[all …]
Dmove.pass.cpp31 std::list<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); in main() local
32 assert(l2 == lo); in main()
34 assert(l2.get_allocator() == lo.get_allocator()); in main()
44 std::list<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l); in main() local
45 assert(l2 == lo); in main()
47 assert(l2.get_allocator() == lo.get_allocator()); in main()
58 std::list<MoveOnly, min_allocator<MoveOnly> > l2 = std::move(l); in main() local
59 assert(l2 == lo); in main()
61 assert(l2.get_allocator() == lo.get_allocator()); in main()
68 std::list<int> l2 = std::move(l1); in main() local
[all …]
Dmove_alloc.pass.cpp31 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main() local
32 assert(l2 == lo); in main()
34 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
44 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() local
45 assert(l2 == lo); in main()
47 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
57 … std::list<MoveOnly, other_allocator<MoveOnly> > l2(std::move(l), other_allocator<MoveOnly>(4)); in main() local
58 assert(l2 == lo); in main()
60 assert(l2.get_allocator() == other_allocator<MoveOnly>(4)); in main()
71 std::list<MoveOnly, min_allocator<MoveOnly> > l2(std::move(l), min_allocator<MoveOnly>()); in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector.bool/
Dassign_copy.pass.cpp23 std::vector<bool, test_allocator<bool> > l2(l, test_allocator<bool>(3)); in main()
24 l2 = l; in main()
25 assert(l2 == l); in main()
26 assert(l2.get_allocator() == test_allocator<bool>(3)); in main()
30 std::vector<bool, other_allocator<bool> > l2(l, other_allocator<bool>(3)); in main()
31 l2 = l; in main()
32 assert(l2 == l); in main()
33 assert(l2.get_allocator() == other_allocator<bool>(5)); in main()
38 std::vector<bool, min_allocator<bool> > l2(l, min_allocator<bool>()); in main()
39 l2 = l; in main()
[all …]
Dassign_move.pass.cpp30 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5)); in main()
31 l2 = std::move(l); in main()
32 assert(l2 == lo); in main()
34 assert(l2.get_allocator() == lo.get_allocator()); in main()
44 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(6)); in main()
45 l2 = std::move(l); in main()
46 assert(l2 == lo); in main()
48 assert(l2.get_allocator() == test_allocator<bool>(6)); in main()
58 std::vector<bool, other_allocator<bool> > l2(other_allocator<bool>(6)); in main()
59 l2 = std::move(l); in main()
[all …]
Dmove_alloc.pass.cpp30 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(6)); in main()
31 assert(l2 == lo); in main()
33 assert(l2.get_allocator() == test_allocator<bool>(6)); in main()
43 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(5)); in main()
44 assert(l2 == lo); in main()
46 assert(l2.get_allocator() == test_allocator<bool>(5)); in main()
56 std::vector<bool, other_allocator<bool> > l2(std::move(l), other_allocator<bool>(4)); in main()
57 assert(l2 == lo); in main()
59 assert(l2.get_allocator() == other_allocator<bool>(4)); in main()
70 std::vector<bool, min_allocator<bool> > l2(std::move(l), min_allocator<bool>()); in main()
[all …]
Dcopy_alloc.pass.cpp39 std::vector<bool, test_allocator<bool> > l2(l, test_allocator<bool>(3)); in main()
40 assert(l2 == l); in main()
41 assert(l2.get_allocator() == test_allocator<bool>(3)); in main()
45 std::vector<bool, other_allocator<bool> > l2(l, other_allocator<bool>(3)); in main()
46 assert(l2 == l); in main()
47 assert(l2.get_allocator() == other_allocator<bool>(3)); in main()
57 std::vector<bool, min_allocator<bool> > l2(l, min_allocator<bool>()); in main()
58 assert(l2 == l); in main()
59 assert(l2.get_allocator() == min_allocator<bool>()); in main()
Dmove.pass.cpp30 std::vector<bool, test_allocator<bool> > l2 = std::move(l); in main() local
31 assert(l2 == lo); in main()
33 assert(l2.get_allocator() == lo.get_allocator()); in main()
43 std::vector<bool, other_allocator<bool> > l2 = std::move(l); in main() local
44 assert(l2 == lo); in main()
46 assert(l2.get_allocator() == lo.get_allocator()); in main()
57 std::vector<bool, min_allocator<bool> > l2 = std::move(l); in main() local
58 assert(l2 == lo); in main()
60 assert(l2.get_allocator() == lo.get_allocator()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.cons/
Dassign_copy.pass.cpp23 std::vector<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main()
24 l2 = l; in main()
25 assert(l2 == l); in main()
26 assert(l2.get_allocator() == test_allocator<int>(3)); in main()
30 std::vector<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main()
31 l2 = l; in main()
32 assert(l2 == l); in main()
33 assert(l2.get_allocator() == other_allocator<int>(5)); in main()
38 std::vector<int, min_allocator<int> > l2(l, min_allocator<int>()); in main()
39 l2 = l; in main()
[all …]
Dassign_move.pass.cpp34 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local
35 l2 = std::move(l); in main()
36 assert(l2 == lo); in main()
38 assert(l2.get_allocator() == lo.get_allocator()); in main()
39 assert(is_contiguous_container_asan_correct(l2)); in main()
53 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local
54 l2 = std::move(l); in main()
55 assert(l2 == lo); in main()
57 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
58 assert(is_contiguous_container_asan_correct(l2)); in main()
[all …]
Dmove_alloc.pass.cpp36 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main() local
37 assert(l2 == lo); in main()
39 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
40 assert(is_contiguous_container_asan_correct(l2)); in main()
54 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() local
55 assert(l2 == lo); in main()
57 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
58 assert(is_contiguous_container_asan_correct(l2)); in main()
72 … std::vector<MoveOnly, other_allocator<MoveOnly> > l2(std::move(l), other_allocator<MoveOnly>(4)); in main() local
73 assert(l2 == lo); in main()
[all …]
Dcopy_alloc.pass.cpp41 std::vector<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main()
42 assert(l2 == l); in main()
43 assert(l2.get_allocator() == test_allocator<int>(3)); in main()
47 std::vector<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main()
48 assert(l2 == l); in main()
49 assert(l2.get_allocator() == other_allocator<int>(3)); in main()
59 std::vector<int, min_allocator<int> > l2(l, min_allocator<int>()); in main()
60 assert(l2 == l); in main()
61 assert(l2.get_allocator() == min_allocator<int>()); in main()
Dmove.pass.cpp36 std::vector<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); in main() local
37 assert(l2 == lo); in main()
39 assert(l2.get_allocator() == lo.get_allocator()); in main()
40 assert(is_contiguous_container_asan_correct(l2)); in main()
54 std::vector<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l); in main() local
55 assert(l2 == lo); in main()
57 assert(l2.get_allocator() == lo.get_allocator()); in main()
58 assert(is_contiguous_container_asan_correct(l2)); in main()
84 std::vector<MoveOnly, min_allocator<MoveOnly> > l2 = std::move(l); in main() local
85 assert(l2 == lo); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/deque.cons/
Dop_equal.pass.cpp37 std::deque<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main()
38 l2 = l; in main()
39 assert(l2 == l); in main()
40 assert(l2.get_allocator() == test_allocator<int>(3)); in main()
44 std::deque<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main()
45 l2 = l; in main()
46 assert(l2 == l); in main()
47 assert(l2.get_allocator() == other_allocator<int>(5)); in main()
57 std::deque<int, min_allocator<int> > l2(l, min_allocator<int>()); in main()
58 l2 = l; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_erase/
Derase_iter_iter_db3.pass.cpp29 std::string l2("123"); in main() local
30 std::string::iterator i = l1.erase(l2.cbegin(), l2.cbegin()+1); in main()
37 S l2("123"); in main() local
38 S::iterator i = l1.erase(l2.cbegin(), l2.cbegin()+1); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.modifiers/
Derase_iter_iter_db3.pass.cpp30 std::vector<int> l2(a1, a1+3); in main() local
31 std::vector<int>::iterator i = l1.erase(l2.cbegin(), l2.cbegin()+1); in main()
38 std::vector<int, min_allocator<int>> l2(a1, a1+3); in main() local
39 std::vector<int, min_allocator<int>>::iterator i = l1.erase(l2.cbegin(), l2.cbegin()+1); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.modifiers/
Derase_iter_iter_db3.pass.cpp30 std::list<int> l2(a1, a1+3); in main() local
31 std::list<int>::iterator i = l1.erase(l2.cbegin(), next(l2.cbegin())); in main()
38 std::list<int, min_allocator<int>> l2(a1, a1+3); in main() local
39 std::list<int, min_allocator<int>>::iterator i = l1.erase(l2.cbegin(), next(l2.cbegin())); in main()

123