Home
last modified time | relevance | path

Searched refs:DefaultOnly (Results 1 – 21 of 21) sorted by relevance

/external/libcxx/test/std/containers/sequences/deque/deque.cons/
Dsize.pass.cpp30 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/
DDefaultOnly.h15 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;
Darchetypes.ipp58 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/
Demplace.pass.cpp28 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 …]
Demplace_hint.pass.cpp28 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/
Ddependent-noexcept-unevaluated.cpp29 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/
Demplace_hint.pass.cpp28 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 …]
Demplace.pass.cpp29 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/
Dconstruct_size.pass.cpp67 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/
Dalloc.pass.cpp53 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()
Ddefault.pass.cpp69 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/
Demplace.pass.cpp28 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()
Demplace_hint.pass.cpp28 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/
Demplace_hint.pass.cpp28 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()
Demplace.pass.cpp28 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/
Dresize_size.pass.cpp38 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/
Ddefault.pass.cpp27 std::list<DefaultOnly> l; in main()
43 std::list<DefaultOnly, min_allocator<DefaultOnly>> l; in main()
Dsize_type.pass.cpp83 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/
Dsize.pass.cpp40 typedef DefaultOnly T; in main()
57 typedef DefaultOnly T; in main()
Dsize.fail.cpp22 typedef DefaultOnly T; in main()
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/
Dresize_size.pass.cpp23 typedef DefaultOnly T; in main()
69 typedef DefaultOnly T; in main()