Home
last modified time | relevance | path

Searched refs:gConstructed (Results 1 – 5 of 5) sorted by relevance

/external/libcxx/test/support/
DCounter.h15 struct Counter_base { static int gConstructed; }; member
21 Counter() : data_() { ++gConstructed; } in Counter()
22 Counter(const T &data) : data_(data) { ++gConstructed; } in Counter()
23 Counter(const Counter& rhs) : data_(rhs.data_) { ++gConstructed; } in Counter()
24 …Counter& operator=(const Counter& rhs) { ++gConstructed; data_ = rhs.data_; return *this;…
26 Counter(Counter&& rhs) : data_(std::move(rhs.data_)) { ++gConstructed; } in Counter()
27 … Counter& operator=(Counter&& rhs) { ++gConstructed; data_ = std::move(rhs.data_); return *this; }
29 ~Counter() { --gConstructed; } in ~Counter()
40 int Counter_base::gConstructed = 0;
/external/libcxx/test/std/containers/associative/set/set.cons/
Dmove_alloc.pass.cpp147 Counter_base::gConstructed = 0; in main()
162 assert(Counter_base::gConstructed == num); in main()
165 assert(Counter_base::gConstructed == 3+num); in main()
169 assert(Counter_base::gConstructed == 6+num); in main()
174 assert(Counter_base::gConstructed == 6+num); in main()
178 assert(Counter_base::gConstructed == 6+num); in main()
182 assert(Counter_base::gConstructed == 3+num); in main()
184 assert(Counter_base::gConstructed == 0); in main()
/external/libcxx/test/std/containers/associative/multiset/multiset.cons/
Dmove_alloc.pass.cpp147 Counter_base::gConstructed = 0; in main()
162 assert(Counter_base::gConstructed == num); in main()
165 assert(Counter_base::gConstructed == 2*num); in main()
169 assert(Counter_base::gConstructed == 3*num); in main()
174 assert(Counter_base::gConstructed == 3*num); in main()
178 assert(Counter_base::gConstructed == 3*num); in main()
182 assert(Counter_base::gConstructed == 2*num); in main()
184 assert(Counter_base::gConstructed == 0); in main()
/external/libcxx/test/std/containers/associative/map/map.cons/
Dmove_alloc.pass.cpp153 Counter_base::gConstructed = 0; in main()
168 assert(Counter_base::gConstructed == num); in main()
171 assert(Counter_base::gConstructed == num+3); in main()
175 assert(Counter_base::gConstructed == num+6); in main()
180 assert(Counter_base::gConstructed == num+6); in main()
184 assert(Counter_base::gConstructed == num+6); in main()
188 assert(Counter_base::gConstructed == num+3); in main()
190 assert(Counter_base::gConstructed == 0); in main()
/external/libcxx/test/std/containers/associative/multimap/multimap.cons/
Dmove_alloc.pass.cpp153 Counter_base::gConstructed = 0; in main()
168 assert(Counter_base::gConstructed == num); in main()
171 assert(Counter_base::gConstructed == 2*num); in main()
175 assert(Counter_base::gConstructed == 3*num); in main()
180 assert(Counter_base::gConstructed == 3*num); in main()
184 assert(Counter_base::gConstructed == 3*num); in main()
188 assert(Counter_base::gConstructed == 2*num); in main()
190 assert(Counter_base::gConstructed == 0); in main()