/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/ |
DefaultOnly.h | 6 class DefaultOnly 10 DefaultOnly(const DefaultOnly&); 11 DefaultOnly& operator=(const DefaultOnly&); 15 DefaultOnly() : data_(-1) {++count;} 16 ~DefaultOnly() {data_ = 0; --count;} 18 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y) 20 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/ |
DefaultOnly.h | 6 class DefaultOnly 10 DefaultOnly(const DefaultOnly&); 11 DefaultOnly& operator=(const DefaultOnly&); 15 DefaultOnly() : data_(-1) {++count;} 16 ~DefaultOnly() {data_ = 0; --count;} 18 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y) 20 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/deque.cons/ |
size.pass.cpp | 18 #include "../../../DefaultOnly.h" 27 assert(DefaultOnly::count == 0); 30 assert(DefaultOnly::count == n); 38 assert(DefaultOnly::count == 0); 43 test<DefaultOnly, std::allocator<DefaultOnly> >(0); 44 test<DefaultOnly, std::allocator<DefaultOnly> >(1); 45 test<DefaultOnly, std::allocator<DefaultOnly> >(10) [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;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.cons/ |
construct_size.pass.cpp | 17 #include "../../../DefaultOnly.h" 37 test<std::vector<DefaultOnly> >(500); 38 assert(DefaultOnly::count == 0); 41 test<std::vector<DefaultOnly, min_allocator<DefaultOnly>> >(500); 42 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());
|
default.pass.cpp | 20 #include "../DefaultOnly.h" 43 std::tuple<int, char*, std::string, DefaultOnly> t; 47 assert(std::get<3>(t) == DefaultOnly());
|
/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);
|
/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...] |
emplace.pass.cpp | 22 #include "../../../DefaultOnly.h" 29 typedef std::map<int, DefaultOnly> M; 32 assert(DefaultOnly::count == 0); 38 assert(m.begin()->second == DefaultOnly()); 39 assert(DefaultOnly::count == 1); 46 assert(next(m.begin())->second == DefaultOnly()); 47 assert(DefaultOnly::count == 2); 54 assert(next(m.begin())->second == DefaultOnly()); 55 assert(DefaultOnly::count == 2); 57 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...] |
/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);
|
/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);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/ |
size.pass.cpp | 17 #include "../../../DefaultOnly.h" 23 typedef DefaultOnly T; 38 typedef DefaultOnly T;
|
size.fail.cpp | 17 #include "../../../DefaultOnly.h" 22 typedef DefaultOnly T;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.cons/ |
default.pass.cpp | 16 #include "../../../DefaultOnly.h" 27 std::list<DefaultOnly> l; 43 std::list<DefaultOnly, min_allocator<DefaultOnly>> l;
|
size_type.pass.cpp | 16 #include "../../../DefaultOnly.h" 46 std::list<DefaultOnly> l(3); 65 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(3);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/forwardlist/forwardlist.modifiers/ |
resize_size.pass.cpp | 17 #include "../../../DefaultOnly.h" 23 typedef DefaultOnly T; 69 typedef DefaultOnly T;
|