/external/libcxx/test/support/ |
DefaultOnly.h | 15 class DefaultOnly 19 DefaultOnly(const DefaultOnly&); 20 DefaultOnly& operator=(const DefaultOnly&); 24 DefaultOnly() : data_(-1) {++count;} 25 ~DefaultOnly() {data_ = 0; --count;} 27 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y) 29 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/ |
DefaultOnly.h | 15 class DefaultOnly 19 DefaultOnly(const DefaultOnly&); 20 DefaultOnly& operator=(const DefaultOnly&); 24 DefaultOnly() : data_(-1) {++count;} 25 ~DefaultOnly() {data_ = 0; --count;} 27 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y) 29 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y [all...] |
/external/libcxx/test/std/containers/sequences/deque/deque.cons/ |
size.pass.cpp | 18 #include "DefaultOnly.h" 28 assert(DefaultOnly::count == 0); 31 assert(DefaultOnly::count == n); 39 assert(DefaultOnly::count == 0); 49 assert(DefaultOnly::count == 0); 52 assert(DefaultOnly::count == n); 60 assert(DefaultOnly::count == 0); 88 test<DefaultOnly, std::allocator<DefaultOnly> >(0); 89 test<DefaultOnly, std::allocator<DefaultOnly> >(1) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/deque.cons/ |
size.pass.cpp | 18 #include "DefaultOnly.h" 28 assert(DefaultOnly::count == 0); 31 assert(DefaultOnly::count == n); 39 assert(DefaultOnly::count == 0); 49 assert(DefaultOnly::count == 0); 52 assert(DefaultOnly::count == n); 60 assert(DefaultOnly::count == 0); 88 test<DefaultOnly, std::allocator<DefaultOnly> >(0); 89 test<DefaultOnly, std::allocator<DefaultOnly> >(1) [all...] |
/external/clang/test/SemaCXX/ |
dependent-noexcept-unevaluated.cpp | 29 struct DefaultOnly 31 DefaultOnly() = default; 32 DefaultOnly(const DefaultOnly&) = delete; 33 DefaultOnly& operator=(const DefaultOnly&) = delete; 34 ~DefaultOnly() = default; 39 array<DefaultOnly, 1> a, b;
|
/external/libcxx/test/std/containers/sequences/vector/vector.cons/ |
construct_size.pass.cpp | 17 #include "DefaultOnly.h" 65 test<std::vector<DefaultOnly> >(500); 66 assert(DefaultOnly::count == 0); 69 test<std::vector<DefaultOnly, min_allocator<DefaultOnly>> >(500); 70 test2<std::vector<DefaultOnly, test_allocator<DefaultOnly>> >( 100, test_allocator<DefaultOnly>(23)); 71 assert(DefaultOnly::count == 0);
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
alloc.pass.cpp | 22 #include "DefaultOnly.h" 37 std::tuple<DefaultOnly> t(std::allocator_arg, A1<int>()); 38 assert(std::get<0>(t) == DefaultOnly()); 54 std::tuple<DefaultOnly, alloc_first> t(std::allocator_arg, A1<int>(5)); 55 assert(std::get<0>(t) == DefaultOnly()); 62 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, 64 assert(std::get<0>(t) == DefaultOnly()); 73 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, 75 assert(std::get<0>(t) == DefaultOnly());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.cons/ |
construct_size.pass.cpp | 17 #include "DefaultOnly.h" 65 test<std::vector<DefaultOnly> >(500); 66 assert(DefaultOnly::count == 0); 69 test<std::vector<DefaultOnly, min_allocator<DefaultOnly>> >(500); 70 test2<std::vector<DefaultOnly, test_allocator<DefaultOnly>> >( 100, test_allocator<DefaultOnly>(23)); 71 assert(DefaultOnly::count == 0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/ |
alloc.pass.cpp | 20 #include "DefaultOnly.h" 35 std::tuple<DefaultOnly> t(std::allocator_arg, A1<int>()); 36 assert(std::get<0>(t) == DefaultOnly()); 52 std::tuple<DefaultOnly, alloc_first> t(std::allocator_arg, A1<int>(5)); 53 assert(std::get<0>(t) == DefaultOnly()); 60 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, 62 assert(std::get<0>(t) == DefaultOnly()); 71 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, 73 assert(std::get<0>(t) == DefaultOnly());
|
/external/libcxx/test/std/containers/associative/multiset/ |
emplace.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multiset<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 35 assert(*m.begin() == DefaultOnly()); 36 assert(DefaultOnly::count == 1); 41 assert(*m.begin() == DefaultOnly()); 42 assert(DefaultOnly::count == 2); 44 assert(DefaultOnly::count == 0);
|
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multiset<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 35 assert(*m.begin() == DefaultOnly()); 36 assert(DefaultOnly::count == 1); 41 assert(*m.begin() == DefaultOnly()); 42 assert(DefaultOnly::count == 2); 44 assert(DefaultOnly::count == 0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multiset/ |
emplace.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multiset<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 35 assert(*m.begin() == DefaultOnly()); 36 assert(DefaultOnly::count == 1); 41 assert(*m.begin() == DefaultOnly()); 42 assert(DefaultOnly::count == 2); 44 assert(DefaultOnly::count == 0);
|
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multiset<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 35 assert(*m.begin() == DefaultOnly()); 36 assert(DefaultOnly::count == 1); 41 assert(*m.begin() == DefaultOnly()); 42 assert(DefaultOnly::count == 2); 44 assert(DefaultOnly::count == 0);
|
/external/libcxx/test/std/containers/associative/map/map.modifiers/ |
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::map<int, DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(m.begin()->second == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 44 assert(next(m.begin())->second == DefaultOnly()); 45 assert(DefaultOnly::count == 2); 52 assert(next(m.begin())->second == DefaultOnly()); 53 assert(DefaultOnly::count == 2); 55 assert(DefaultOnly::count == 0) [all...] |
/external/libcxx/test/std/containers/associative/multimap/multimap.modifiers/ |
emplace.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multimap<int, DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(m.begin()->second == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 43 assert(next(m.begin())->second == DefaultOnly()); 44 assert(DefaultOnly::count == 2); 50 assert(next(m.begin(), 2)->second == DefaultOnly()); 51 assert(DefaultOnly::count == 3); 53 assert(DefaultOnly::count == 0) [all...] |
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multimap<int, DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(m.begin()->second == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 44 assert(next(m.begin())->second == DefaultOnly()); 45 assert(DefaultOnly::count == 2); 52 assert(next(m.begin(), 2)->second == DefaultOnly()); 53 assert(DefaultOnly::count == 3); 55 assert(DefaultOnly::count == 0) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/map.modifiers/ |
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::map<int, DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(m.begin()->second == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 44 assert(next(m.begin())->second == DefaultOnly()); 45 assert(DefaultOnly::count == 2); 52 assert(next(m.begin())->second == DefaultOnly()); 53 assert(DefaultOnly::count == 2); 55 assert(DefaultOnly::count == 0) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multimap/multimap.modifiers/ |
emplace.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multimap<int, DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(m.begin()->second == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 43 assert(next(m.begin())->second == DefaultOnly()); 44 assert(DefaultOnly::count == 2); 50 assert(next(m.begin(), 2)->second == DefaultOnly()); 51 assert(DefaultOnly::count == 3); 53 assert(DefaultOnly::count == 0) [all...] |
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::multimap<int, DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(m.begin()->second == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 44 assert(next(m.begin())->second == DefaultOnly()); 45 assert(DefaultOnly::count == 2); 52 assert(next(m.begin(), 2)->second == DefaultOnly()); 53 assert(DefaultOnly::count == 3); 55 assert(DefaultOnly::count == 0) [all...] |
/external/libcxx/test/std/containers/sequences/list/list.capacity/ |
resize_size.pass.cpp | 16 #include "DefaultOnly.h" 38 std::list<DefaultOnly> l(10); 44 std::list<DefaultOnly> l(10); 68 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10); 74 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.capacity/ |
resize_size.pass.cpp | 16 #include "DefaultOnly.h" 38 std::list<DefaultOnly> l(10); 44 std::list<DefaultOnly> l(10); 68 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10); 74 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10);
|
/external/libcxx/test/std/containers/associative/set/ |
emplace.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::set<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(*m.begin() == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 43 assert(*m.begin() == DefaultOnly()); 44 assert(DefaultOnly::count == 1); 46 assert(DefaultOnly::count == 0);
|
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::set<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 35 assert(*m.begin() == DefaultOnly()); 36 assert(DefaultOnly::count == 1); 41 assert(*m.begin() == DefaultOnly()); 42 assert(DefaultOnly::count == 1); 44 assert(DefaultOnly::count == 0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/set/ |
emplace.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::set<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 36 assert(*m.begin() == DefaultOnly()); 37 assert(DefaultOnly::count == 1); 43 assert(*m.begin() == DefaultOnly()); 44 assert(DefaultOnly::count == 1); 46 assert(DefaultOnly::count == 0);
|
emplace_hint.pass.cpp | 21 #include "DefaultOnly.h" 28 typedef std::set<DefaultOnly> M; 31 assert(DefaultOnly::count == 0); 35 assert(*m.begin() == DefaultOnly()); 36 assert(DefaultOnly::count == 1); 41 assert(*m.begin() == DefaultOnly()); 42 assert(DefaultOnly::count == 1); 44 assert(DefaultOnly::count == 0);
|