Home
last modified time | relevance | path

Searched refs:constructed (Results 1 – 25 of 147) sorted by relevance

123456

/llvm-project-15.0.7/libcxx/test/std/language.support/support.exception/propagation/
H A Dcurrent_exception.pass.cpp25 static int constructed; member
27 A() {++constructed;} in A()
28 ~A() {--constructed;} in ~A()
29 A(const A&) {++constructed;} in A()
32 int A::constructed = 0; member in A
53 assert(A::constructed == 0); in main()
73 assert(A::constructed == 0); in main()
93 assert(A::constructed == 0); in main()
113 assert(A::constructed == 0); in main()
138 assert(A::constructed == 0); in main()
[all …]
H A Dmake_exception_ptr.pass.cpp21 static int constructed; member
24 A(int data = 0) : data_(data) {++constructed;} in A()
25 ~A() {--constructed;} in ~A()
26 A(const A& a) : data_(a.data_) {++constructed;} in A()
29 int A::constructed = 0; member in A
43 assert(A::constructed == 1); in main()
46 assert(A::constructed == 2); in main()
52 assert(A::constructed == 1); in main()
54 assert(A::constructed == 0); in main()
56 assert(A::constructed == 0); in main()
H A Drethrow_exception.pass.cpp21 static int constructed; member
24 A(int data = 0) : data_(data) {++constructed;} in A()
25 ~A() {--constructed;} in ~A()
26 A(const A& a) : data_(a.data_) {++constructed;} in A()
29 int A::constructed = 0; member in A
51 assert(A::constructed == 1); in main()
54 assert(A::constructed == 2); in main()
60 assert(A::constructed == 1); in main()
62 assert(A::constructed == 0); in main()
64 assert(A::constructed == 0); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
H A Dconstruct.pass.cpp27 static bool constructed; member
35 constructed = true; in B()
39 bool B::constructed = false; member in B
43 static bool constructed; member
51 constructed = true; in C()
55 bool C::constructed = false; member in C
59 static bool constructed; member
68 constructed = true; in D()
72 bool D::constructed = false; member in D
85 constructed = true; in E()
[all …]
H A Ddestroy.pass.cpp27 static bool constructed; member
29 B() {constructed = true;} in B()
30 ~B() {constructed = false;} in ~B()
33 bool B::constructed = false; member in B
43 assert(!S::constructed); in main()
45 assert(S::constructed); in main()
47 assert(!S::constructed); in main()
56 assert(!S::constructed); in main()
60 assert(S::constructed); in main()
61 assert(A3<S>::constructed); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/
H A Duninitialized_default_construct_n.pass.cpp25 static int constructed; member
26 static void reset() { count = constructed = 0; } in reset()
27 explicit Counted() { ++count; ++constructed; } in Counted()
33 int Counted::constructed = 0; member in Counted
38 static int constructed; member
40 static void reset() { throw_after = count = constructed = 0; } in reset()
42 ++constructed; in ThrowsCounted()
53 int ThrowsCounted::constructed = 0; member in ThrowsCounted
69 assert(ThrowsCounted::constructed == 4); // Fourth construction throws in test_ctor_throws()
82 assert(Counted::constructed == 1); in test_counted()
[all …]
H A Duninitialized_default_construct.pass.cpp25 static int constructed; member
26 explicit Counted() { ++count; ++constructed; } in Counted()
32 int Counted::constructed = 0; member in Counted
37 static int constructed; member
40 ++constructed; in ThrowsCounted()
51 int ThrowsCounted::constructed = 0; member in ThrowsCounted
68 assert(ThrowsCounted::constructed == 4); // Fourth construction throws in test_ctor_throws()
80 assert(Counted::constructed == 1); in test_counted()
83 assert(Counted::constructed == 5); in test_counted()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/
H A Duninitialized_value_construct.pass.cpp25 static int constructed; member
26 static void reset() { count = constructed = 0; } in reset()
27 explicit Counted() { ++count; ++constructed; } in Counted()
33 int Counted::constructed = 0; member in Counted
38 static int constructed; member
40 static void reset() { throw_after = count = constructed = 0; } in reset()
42 ++constructed; in ThrowsCounted()
53 int ThrowsCounted::constructed = 0; member in ThrowsCounted
69 assert(ThrowsCounted::constructed == 4); // forth construction throws in test_ctor_throws()
81 assert(Counted::constructed == 1); in test_counted()
[all …]
H A Duninitialized_value_construct_n.pass.cpp25 static int constructed; member
26 static void reset() { count = constructed = 0; } in reset()
27 explicit Counted() { ++count; ++constructed; } in Counted()
33 int Counted::constructed = 0; member in Counted
37 static int constructed; member
39 static void reset() { throw_after = count = constructed = 0; } in reset()
41 ++constructed; in ThrowsCounted()
52 int ThrowsCounted::constructed = 0; member in ThrowsCounted
68 assert(ThrowsCounted::constructed == 4); // forth construction throws in test_ctor_throws()
83 assert(Counted::constructed == 1); in test_counted()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.move/
H A Duninitialized_move.pass.cpp25 static int constructed; member
26 static void reset() { count = constructed = 0; } in reset()
27 explicit Counted(int&& x) : value(x) { x = 0; ++count; ++constructed; } in Counted()
34 int Counted::constructed = 0; member in Counted
38 static int constructed; member
40 static void reset() { throw_after = count = constructed = 0; } in reset()
42 ++constructed; in ThrowsCounted()
54 int ThrowsCounted::constructed = 0; member in ThrowsCounted
71 assert(ThrowsCounted::constructed == 4); // forth construction throws in test_ctor_throws()
90 assert(Counted::constructed == 1); in test_counted()
[all …]
H A Duninitialized_move_n.pass.cpp25 static int constructed; member
26 static void reset() { count = constructed = 0; } in reset()
27 explicit Counted(int&& x) : value(x) { x = 0; ++count; ++constructed; } in Counted()
34 int Counted::constructed = 0; member in Counted
38 static int constructed; member
40 static void reset() { throw_after = count = constructed = 0; } in reset()
42 ++constructed; in ThrowsCounted()
54 int ThrowsCounted::constructed = 0; member in ThrowsCounted
71 assert(ThrowsCounted::constructed == 4); // forth construction throws in test_ctor_throws()
91 assert(Counted::constructed == 1); in test_counted()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/
H A Dallocate.cxx2a.pass.cpp43 static int constructed; in TEST_ALIGNAS() local
44 AlignedType() { ++constructed; } in TEST_ALIGNAS()
45 AlignedType(AlignedType const&) { ++constructed; } in TEST_ALIGNAS()
46 ~AlignedType() { --constructed; } in TEST_ALIGNAS()
49 int AlignedType<Align>::constructed = 0; member in AlignedType<Align>
55 T::constructed = 0; in test_aligned()
70 assert(T::constructed == 0); in test_aligned()
78 assert(T::constructed == 0); in test_aligned()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/default.allocator/allocator.members/
H A Dallocate.pass.cpp40 static int constructed; in TEST_ALIGNAS() local
41 AlignedType() { ++constructed; } in TEST_ALIGNAS()
42 AlignedType(AlignedType const&) { ++constructed; } in TEST_ALIGNAS()
43 ~AlignedType() { --constructed; } in TEST_ALIGNAS()
46 int AlignedType<Align>::constructed = 0; member in AlignedType<Align>
52 T::constructed = 0; in test_aligned()
59 assert(T::constructed == 0); in test_aligned()
69 assert(T::constructed == 0); in test_aligned()
76 assert(T::constructed == 0); in test_aligned()
H A Dallocate_at_least.pass.cpp38 static int constructed; member
39 AlignedType() { ++constructed; } in AlignedType()
40 AlignedType(AlignedType const&) { ++constructed; } in AlignedType()
41 ~AlignedType() { --constructed; } in ~AlignedType()
44 int AlignedType<Align>::constructed = 0; member in AlignedType<Align>
50 T::constructed = 0; in test_aligned()
57 assert(T::constructed == 0); in test_aligned()
68 assert(T::constructed == 0); in test_aligned()
75 assert(T::constructed == 0); in test_aligned()
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
H A Dnullopt_t.pass.cpp27 enum class State { inactive, constructed, destroyed }; in test() enumerator
34 s = State::constructed; in test()
59 assert(state == State::constructed); in test()
81 assert(TT::constructed == 0); in main()
94 assert(TT::constructed == 0); in main()
H A Doptional_U.pass.cpp98 assert(T::constructed == 1); in test_with_test_type()
114 assert(T::constructed == 0); in test_with_test_type()
130 assert(T::constructed == 0); in test_with_test_type()
143 assert(T::constructed == 0); in test_with_test_type()
241 enum class state_t { inactive, constructed, copy_assigned, move_assigned }; in test() enumerator
247 *state_ = state_t::constructed; in test()
275 assert(state[0] == state_t::constructed); in test()
278 assert(state[1] == state_t::constructed); in test()
287 assert(state[0] == state_t::constructed); in test()
290 assert(state[1] == state_t::constructed); in test()
H A Demplace.pass.cpp130 assert(T::constructed == 1); in test_on_test_type()
142 assert(T::constructed == 1); in test_on_test_type()
154 assert(T::constructed == 1); in test_on_test_type()
166 assert(T::constructed == 1); in test_on_test_type()
178 assert(T::constructed == 1); in test_on_test_type()
190 assert(T::constructed == 1); in test_on_test_type()
202 assert(T::constructed == 1); in test_on_test_type()
H A Dassign_value.pass.cpp92 assert(T::constructed == 1); in test_with_test_type()
104 assert(T::constructed == 0); in test_with_test_type()
116 assert(T::constructed == 2); in test_with_test_type()
129 assert(T::constructed == 1); in test_with_test_type()
142 assert(T::constructed == 2); in test_with_test_type()
156 assert(T::constructed == 0); in test_with_test_type()
H A Dconst_optional_U.pass.cpp92 assert(T::constructed == 1); in test_with_test_type()
108 assert(T::constructed == 0); in test_with_test_type()
124 assert(T::constructed == 0); in test_with_test_type()
137 assert(T::constructed == 0); in test_with_test_type()
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/
H A Dassign_tuple_like.pass.cpp35 assert(C::constructed == 0); in main()
49 assert(C::constructed == 0); in main()
63 assert(C::constructed == 0); in main()
77 assert(C::constructed == 0); in main()
91 assert(C::constructed == 0); in main()
/llvm-project-15.0.7/libcxx/test/support/
H A Darchetypes.h40 static int constructed; member
58 constructed = value_constructed = default_constructed = in reset_constructors()
64 ++alive; ++constructed; ++default_constructed; in TestBase()
68 ++alive; ++constructed; ++value_constructed; in TestBase()
72 ++alive; ++constructed; ++value_constructed; in TestBase()
76 ++alive; ++constructed; ++value_constructed; in TestBase()
80 ++alive; ++constructed; ++value_constructed; in TestBase()
85 ++alive; ++constructed; ++value_constructed;
89 ++alive; ++constructed; ++value_constructed;
105 ++alive; ++constructed; ++copy_constructed; in TestBase()
[all …]
/llvm-project-15.0.7/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
H A Dconstruct_pair.pass.cpp35 int constructed = 0; variable
39 default_constructible() : x(42) { ++constructed; } in default_constructible()
53 assert(constructed == 2); in main()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/fuchsia/
H A Dstatically-constructed-objects.rst1 .. title:: clang-tidy - fuchsia-statically-constructed-objects
3 fuchsia-statically-constructed-objects
6 Warns if global, non-trivial objects with static storage are constructed, unless
/llvm-project-15.0.7/llvm/test/CodeGen/AVR/
H A Dselect-must-add-unconditional-jump.ll4 ; in a different order than they were constructed, this exposes an
6 ; could always fallthrough to a newly-constructed MBB. However,
7 ; there's no guarantee that either of the constructed MBBs need to
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
H A Dmove.pass.cpp95 assert(T::constructed == 0); in test_reference_extension()
109 assert(T::constructed == 0); in test_reference_extension()
121 assert(T::constructed == 0); in test_reference_extension()
135 assert(T::constructed == 0); in test_reference_extension()

123456