/external/libcxx/test/std/containers/sequences/deque/deque.cons/ |
D | size.pass.cpp | 30 assert(DefaultOnly::count == 0); in test2() 33 assert(static_cast<unsigned>(DefaultOnly::count) == n); in test2() 39 assert(DefaultOnly::count == 0); in test2() 51 assert(DefaultOnly::count == 0); in test1() 54 assert(static_cast<unsigned>(DefaultOnly::count) == n); in test1() 62 assert(DefaultOnly::count == 0); in test1() 92 test<DefaultOnly, std::allocator<DefaultOnly> >(0); in main() 93 test<DefaultOnly, std::allocator<DefaultOnly> >(1); in main() 94 test<DefaultOnly, std::allocator<DefaultOnly> >(10); in main() 95 test<DefaultOnly, std::allocator<DefaultOnly> >(1023); in main() [all …]
|
/external/libcxx/test/support/ |
D | DefaultOnly.h | 15 class DefaultOnly 19 DefaultOnly(const DefaultOnly&); 20 DefaultOnly& operator=(const DefaultOnly&); 24 DefaultOnly() : data_(-1) {++count;} in DefaultOnly() function 25 ~DefaultOnly() {data_ = 0; --count;} in ~DefaultOnly() 27 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y) 29 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y) 33 int DefaultOnly::count = 0;
|
D | archetypes.ipp | 58 struct DefaultOnly : DEFINE_BASE(DefaultOnly) { 59 using Base = DEFINE_BASE(DefaultOnly); 61 DEFINE_EXPLICIT DEFINE_CONSTEXPR DefaultOnly() DEFINE_DEFAULT_CTOR; 62 DefaultOnly(DefaultOnly const&) = delete; 63 DefaultOnly& operator=(DefaultOnly const&) = delete; 64 DEFINE_DTOR(DefaultOnly) 151 DefaultOnly,
|
/external/libcxx/test/std/containers/associative/multimap/multimap.modifiers/ |
D | emplace.pass.cpp | 28 typedef std::multimap<int, DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(m.begin()->second == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 43 assert(next(m.begin())->second == DefaultOnly()); in main() 44 assert(DefaultOnly::count == 2); in main() 50 assert(next(m.begin(), 2)->second == DefaultOnly()); in main() 51 assert(DefaultOnly::count == 3); in main() 53 assert(DefaultOnly::count == 0); in main() 89 …typedef std::multimap<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, Default… in main() [all …]
|
D | emplace_hint.pass.cpp | 28 typedef std::multimap<int, DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(m.begin()->second == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 44 assert(next(m.begin())->second == DefaultOnly()); in main() 45 assert(DefaultOnly::count == 2); in main() 52 assert(next(m.begin(), 2)->second == DefaultOnly()); in main() 53 assert(DefaultOnly::count == 3); in main() 55 assert(DefaultOnly::count == 0); in main() 94 …typedef std::multimap<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, Default… in main() [all …]
|
/external/clang/test/SemaCXX/ |
D | dependent-noexcept-unevaluated.cpp | 29 struct DefaultOnly struct 31 DefaultOnly() = default; 32 DefaultOnly(const DefaultOnly&) = delete; 33 DefaultOnly& operator=(const DefaultOnly&) = delete; 34 ~DefaultOnly() = default; 39 array<DefaultOnly, 1> a, b; in main()
|
/external/libcxx/test/std/containers/associative/map/map.modifiers/ |
D | emplace_hint.pass.cpp | 28 typedef std::map<int, DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(m.begin()->second == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 44 assert(next(m.begin())->second == DefaultOnly()); in main() 45 assert(DefaultOnly::count == 2); in main() 52 assert(next(m.begin())->second == DefaultOnly()); in main() 53 assert(DefaultOnly::count == 2); in main() 55 assert(DefaultOnly::count == 0); in main() 94 …typedef std::map<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, DefaultOnly>… in main() [all …]
|
D | emplace.pass.cpp | 29 typedef std::map<int, DefaultOnly> M; in main() 32 assert(DefaultOnly::count == 0); in main() 38 assert(m.begin()->second == DefaultOnly()); in main() 39 assert(DefaultOnly::count == 1); in main() 46 assert(next(m.begin())->second == DefaultOnly()); in main() 47 assert(DefaultOnly::count == 2); in main() 54 assert(next(m.begin())->second == DefaultOnly()); in main() 55 assert(DefaultOnly::count == 2); in main() 57 assert(DefaultOnly::count == 0); in main() 97 …typedef std::map<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, DefaultOnly>… in main() [all …]
|
/external/libcxx/test/std/containers/sequences/vector/vector.cons/ |
D | construct_size.pass.cpp | 67 test<std::vector<DefaultOnly> >(500); in main() 68 assert(DefaultOnly::count == 0); in main() 71 test<std::vector<DefaultOnly, min_allocator<DefaultOnly>> >(500); in main() 72 …test2<std::vector<DefaultOnly, test_allocator<DefaultOnly>> >( 100, test_allocator<DefaultOnly>(23… in main() 73 assert(DefaultOnly::count == 0); in main()
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | alloc.pass.cpp | 53 std::tuple<DefaultOnly> t(std::allocator_arg, A1<int>()); in main() 54 assert(std::get<0>(t) == DefaultOnly()); in main() 70 std::tuple<DefaultOnly, alloc_first> t(std::allocator_arg, A1<int>(5)); in main() 71 assert(std::get<0>(t) == DefaultOnly()); in main() 78 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, in main() 80 assert(std::get<0>(t) == DefaultOnly()); in main() 89 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, in main() 91 assert(std::get<0>(t) == DefaultOnly()); in main()
|
D | default.pass.cpp | 69 std::tuple<int, char*, std::string, DefaultOnly> t; in main() 73 assert(std::get<3>(t) == DefaultOnly()); in main() 78 static_assert(!std::is_default_constructible<std::tuple<DefaultOnly, NoDefault>>(), ""); in main() 79 …static_assert(!std::is_default_constructible<std::tuple<NoDefault, DefaultOnly, NoDefault>>(), ""); in main()
|
/external/libcxx/test/std/containers/associative/multiset/ |
D | emplace.pass.cpp | 28 typedef std::multiset<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 35 assert(*m.begin() == DefaultOnly()); in main() 36 assert(DefaultOnly::count == 1); in main() 41 assert(*m.begin() == DefaultOnly()); in main() 42 assert(DefaultOnly::count == 2); in main() 44 assert(DefaultOnly::count == 0); in main()
|
D | emplace_hint.pass.cpp | 28 typedef std::multiset<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 35 assert(*m.begin() == DefaultOnly()); in main() 36 assert(DefaultOnly::count == 1); in main() 41 assert(*m.begin() == DefaultOnly()); in main() 42 assert(DefaultOnly::count == 2); in main() 44 assert(DefaultOnly::count == 0); in main()
|
/external/libcxx/test/std/containers/associative/set/ |
D | emplace_hint.pass.cpp | 28 typedef std::set<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 35 assert(*m.begin() == DefaultOnly()); in main() 36 assert(DefaultOnly::count == 1); in main() 41 assert(*m.begin() == DefaultOnly()); in main() 42 assert(DefaultOnly::count == 1); in main() 44 assert(DefaultOnly::count == 0); in main()
|
D | emplace.pass.cpp | 28 typedef std::set<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(*m.begin() == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 43 assert(*m.begin() == DefaultOnly()); in main() 44 assert(DefaultOnly::count == 1); in main() 46 assert(DefaultOnly::count == 0); in main()
|
/external/libcxx/test/std/containers/sequences/list/list.capacity/ |
D | resize_size.pass.cpp | 38 std::list<DefaultOnly> l(10); in main() 44 std::list<DefaultOnly> l(10); in main() 68 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10); in main() 74 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10); in main()
|
/external/libcxx/test/std/containers/sequences/list/list.cons/ |
D | default.pass.cpp | 27 std::list<DefaultOnly> l; in main() 43 std::list<DefaultOnly, min_allocator<DefaultOnly>> l; in main()
|
D | size_type.pass.cpp | 83 std::list<DefaultOnly> l(3); in main() 99 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(3); in main()
|
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/ |
D | size.pass.cpp | 40 typedef DefaultOnly T; in main() 57 typedef DefaultOnly T; in main()
|
D | size.fail.cpp | 22 typedef DefaultOnly T; in main()
|
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/ |
D | resize_size.pass.cpp | 23 typedef DefaultOnly T; in main() 69 typedef DefaultOnly T; in main()
|