Home
last modified time | relevance | path

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

12

/external/llvm-project/libcxx/test/std/containers/sequences/deque/deque.cons/
Dsize.pass.cpp29 assert(DefaultOnly::count == 0); in test2()
32 assert(static_cast<unsigned>(DefaultOnly::count) == n); in test2()
38 assert(DefaultOnly::count == 0); in test2()
50 assert(DefaultOnly::count == 0); in test1()
53 assert(static_cast<unsigned>(DefaultOnly::count) == n); in test1()
61 assert(DefaultOnly::count == 0); in test1()
91 test<DefaultOnly, std::allocator<DefaultOnly> >(0); in main()
92 test<DefaultOnly, std::allocator<DefaultOnly> >(1); in main()
93 test<DefaultOnly, std::allocator<DefaultOnly> >(10); in main()
94 test<DefaultOnly, std::allocator<DefaultOnly> >(1023); in main()
[all …]
/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;
/external/llvm-project/libcxx/test/support/
DDefaultOnly.h14 class DefaultOnly
18 DefaultOnly(const DefaultOnly&);
19 DefaultOnly& operator=(const DefaultOnly&);
23 DefaultOnly() : data_(-1) {++count;} in DefaultOnly() function
24 ~DefaultOnly() {data_ = 0; --count;} in ~DefaultOnly()
26 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y)
28 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y)
32 int DefaultOnly::count = 0;
/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/llvm-project/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/llvm-project/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
Demplace.pass.cpp29 typedef std::multimap<int, DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
37 assert(m.begin()->second == DefaultOnly()); in main()
38 assert(DefaultOnly::count == 1); in main()
44 assert(next(m.begin())->second == DefaultOnly()); in main()
45 assert(DefaultOnly::count == 2); in main()
51 assert(next(m.begin(), 2)->second == DefaultOnly()); in main()
52 assert(DefaultOnly::count == 3); in main()
54 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.cpp29 typedef std::multimap<int, DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
37 assert(m.begin()->second == DefaultOnly()); in main()
38 assert(DefaultOnly::count == 1); in main()
45 assert(next(m.begin())->second == DefaultOnly()); in main()
46 assert(DefaultOnly::count == 2); in main()
53 assert(next(m.begin(), 2)->second == DefaultOnly()); in main()
54 assert(DefaultOnly::count == 3); in main()
56 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/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
Demplace.pass.cpp29 typedef std::multimap<int, DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
37 assert(m.begin()->second == DefaultOnly()); in main()
38 assert(DefaultOnly::count == 1); in main()
44 assert(next(m.begin())->second == DefaultOnly()); in main()
45 assert(DefaultOnly::count == 2); in main()
51 assert(next(m.begin(), 2)->second == DefaultOnly()); in main()
52 assert(DefaultOnly::count == 3); in main()
54 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.cpp29 typedef std::multimap<int, DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
37 assert(m.begin()->second == DefaultOnly()); in main()
38 assert(DefaultOnly::count == 1); in main()
45 assert(next(m.begin())->second == DefaultOnly()); in main()
46 assert(DefaultOnly::count == 2); in main()
53 assert(next(m.begin(), 2)->second == DefaultOnly()); in main()
54 assert(DefaultOnly::count == 3); in main()
56 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/libcxx/test/std/containers/associative/map/map.modifiers/
Demplace_hint.pass.cpp29 typedef std::map<int, DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
37 assert(m.begin()->second == DefaultOnly()); in main()
38 assert(DefaultOnly::count == 1); in main()
45 assert(next(m.begin())->second == DefaultOnly()); in main()
46 assert(DefaultOnly::count == 2); in main()
53 assert(next(m.begin())->second == DefaultOnly()); in main()
54 assert(DefaultOnly::count == 2); in main()
56 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.cpp30 typedef std::map<int, DefaultOnly> M; in main()
33 assert(DefaultOnly::count == 0); in main()
39 assert(m.begin()->second == DefaultOnly()); in main()
40 assert(DefaultOnly::count == 1); in main()
47 assert(next(m.begin())->second == DefaultOnly()); in main()
48 assert(DefaultOnly::count == 2); in main()
55 assert(next(m.begin())->second == DefaultOnly()); in main()
56 assert(DefaultOnly::count == 2); in main()
58 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/llvm-project/libcxx/test/std/containers/associative/map/map.modifiers/
Demplace_hint.pass.cpp29 typedef std::map<int, DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
37 assert(m.begin()->second == DefaultOnly()); in main()
38 assert(DefaultOnly::count == 1); in main()
45 assert(next(m.begin())->second == DefaultOnly()); in main()
46 assert(DefaultOnly::count == 2); in main()
53 assert(next(m.begin())->second == DefaultOnly()); in main()
54 assert(DefaultOnly::count == 2); in main()
56 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.cpp30 typedef std::map<int, DefaultOnly> M; in main()
33 assert(DefaultOnly::count == 0); in main()
39 assert(m.begin()->second == DefaultOnly()); in main()
40 assert(DefaultOnly::count == 1); in main()
47 assert(next(m.begin())->second == DefaultOnly()); in main()
48 assert(DefaultOnly::count == 2); in main()
55 assert(next(m.begin())->second == DefaultOnly()); in main()
56 assert(DefaultOnly::count == 2); in main()
58 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/llvm-project/libcxx/test/std/containers/sequences/vector/vector.cons/
Dconstruct_size.pass.cpp66 test<std::vector<DefaultOnly> >(500); in main()
67 assert(DefaultOnly::count == 0); in main()
70 test<std::vector<DefaultOnly, min_allocator<DefaultOnly>> >(500); in main()
71 …test2<std::vector<DefaultOnly, test_allocator<DefaultOnly>> >( 100, test_allocator<DefaultOnly>(23… in main()
72 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()
/external/llvm-project/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()
/external/llvm-project/libcxx/test/std/containers/associative/multiset/
Demplace.pass.cpp29 typedef std::multiset<DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
36 assert(*m.begin() == DefaultOnly()); in main()
37 assert(DefaultOnly::count == 1); in main()
42 assert(*m.begin() == DefaultOnly()); in main()
43 assert(DefaultOnly::count == 2); in main()
45 assert(DefaultOnly::count == 0); in main()
Demplace_hint.pass.cpp29 typedef std::multiset<DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
36 assert(*m.begin() == DefaultOnly()); in main()
37 assert(DefaultOnly::count == 1); in main()
42 assert(*m.begin() == DefaultOnly()); in main()
43 assert(DefaultOnly::count == 2); in main()
45 assert(DefaultOnly::count == 0); in main()
/external/libcxx/test/std/containers/associative/multiset/
Demplace.pass.cpp29 typedef std::multiset<DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
36 assert(*m.begin() == DefaultOnly()); in main()
37 assert(DefaultOnly::count == 1); in main()
42 assert(*m.begin() == DefaultOnly()); in main()
43 assert(DefaultOnly::count == 2); in main()
45 assert(DefaultOnly::count == 0); in main()
Demplace_hint.pass.cpp29 typedef std::multiset<DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
36 assert(*m.begin() == DefaultOnly()); in main()
37 assert(DefaultOnly::count == 1); in main()
42 assert(*m.begin() == DefaultOnly()); in main()
43 assert(DefaultOnly::count == 2); in main()
45 assert(DefaultOnly::count == 0); in main()
/external/llvm-project/libcxx/test/std/containers/associative/set/
Demplace_hint.pass.cpp29 typedef std::set<DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
36 assert(*m.begin() == DefaultOnly()); in main()
37 assert(DefaultOnly::count == 1); in main()
42 assert(*m.begin() == DefaultOnly()); in main()
43 assert(DefaultOnly::count == 1); in main()
45 assert(DefaultOnly::count == 0); in main()
/external/libcxx/test/std/containers/associative/set/
Demplace_hint.pass.cpp29 typedef std::set<DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
36 assert(*m.begin() == DefaultOnly()); in main()
37 assert(DefaultOnly::count == 1); in main()
42 assert(*m.begin() == DefaultOnly()); in main()
43 assert(DefaultOnly::count == 1); in main()
45 assert(DefaultOnly::count == 0); in main()
Demplace.pass.cpp29 typedef std::set<DefaultOnly> M; in main()
32 assert(DefaultOnly::count == 0); in main()
37 assert(*m.begin() == DefaultOnly()); in main()
38 assert(DefaultOnly::count == 1); in main()
44 assert(*m.begin() == DefaultOnly()); in main()
45 assert(DefaultOnly::count == 1); in main()
47 assert(DefaultOnly::count == 0); in main()

12