Home
last modified time | relevance | path

Searched refs:dtor_called (Results 1 – 13 of 13) sorted by relevance

/external/libcxx/test/std/utilities/optional/optional.object/optional.object.mod/
Dreset.pass.cpp24 static bool dtor_called; member
25 ~X() {dtor_called = true;} in ~X()
28 bool X::dtor_called = false; member in X
46 assert(X::dtor_called == false); in main()
48 assert(X::dtor_called == false); in main()
51 assert(X::dtor_called == false); // TRANSITION, Clang/C2 VSO#239997 in main()
54 X::dtor_called = false; in main()
56 assert(X::dtor_called == true); in main()
58 X::dtor_called = false; in main()
60 assert(X::dtor_called == false); // TRANSITION, Clang/C2 VSO#239997 in main()
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.assign/
Demplace_initializer_list.pass.cpp30 static bool dtor_called; member in X
34 ~X() {dtor_called = true;} in ~X()
40 bool X::dtor_called = false; member in X
60 static bool dtor_called; member in Z
65 ~Z() {dtor_called = true;} in ~Z()
71 bool Z::dtor_called = false; member in Z
79 assert(X::dtor_called == false); in main()
81 assert(X::dtor_called == true); in main()
85 X::dtor_called = false; in main()
90 assert(X::dtor_called == false); in main()
[all …]
Demplace.pass.cpp40 static bool dtor_called; member in Y
42 ~Y() {dtor_called = true;} in ~Y()
45 bool Y::dtor_called = false; member in Y
50 static bool dtor_called; member in Z
53 ~Z() {dtor_called = true;} in ~Z()
56 bool Z::dtor_called = false; member in Z
130 assert(Y::dtor_called == false); in main()
132 assert(Y::dtor_called == true); in main()
142 assert(Z::dtor_called == false); in main()
149 assert(Z::dtor_called == true); in main()
Dnullopt_t.pass.cpp25 static bool dtor_called; member
26 ~X() {dtor_called = true;} in ~X()
29 bool X::dtor_called = false; member in X
47 assert(X::dtor_called == false); in main()
49 assert(X::dtor_called == false); in main()
56 assert(X::dtor_called == false); in main()
58 assert(X::dtor_called == true); in main()
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.swap/
Dswap.pass.cpp29 static unsigned dtor_called; member in X
33 ~X() {++dtor_called;} in ~X()
38 unsigned X::dtor_called = 0; member in X
44 static unsigned dtor_called; member in Y
47 ~Y() {++dtor_called;} in ~Y()
53 unsigned Y::dtor_called = 0; member in Y
134 assert(X::dtor_called == 0); in main()
143 X::dtor_called = 0; in main()
145 assert(X::dtor_called == 1); in main()
157 X::dtor_called = 0; in main()
[all …]
/external/libcxx/test/std/experimental/optional/optional.specalg/
Dswap.pass.cpp28 static unsigned dtor_called; member in X
32 ~X() {++dtor_called;} in ~X()
37 unsigned X::dtor_called = 0; member in X
43 static unsigned dtor_called; member in Y
46 ~Y() {++dtor_called;} in ~Y()
52 unsigned Y::dtor_called = 0; member in Y
124 assert(X::dtor_called == 0); in main()
133 X::dtor_called = 0; in main()
135 assert(X::dtor_called == 1); in main()
147 X::dtor_called = 0; in main()
[all …]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.swap/
Dswap.pass.cpp30 static unsigned dtor_called; member in X
34 ~X() {++dtor_called;} in ~X()
39 unsigned X::dtor_called = 0; member in X
45 static unsigned dtor_called; member in Y
48 ~Y() {++dtor_called;} in ~Y()
54 unsigned Y::dtor_called = 0; member in Y
127 assert(X::dtor_called == 0); in main()
136 X::dtor_called = 0; in main()
138 assert(X::dtor_called == 1); in main()
150 X::dtor_called = 0; in main()
[all …]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Demplace_initializer_list.pass.cpp30 static bool dtor_called; member in X
34 ~X() {dtor_called = true;} in ~X()
40 bool X::dtor_called = false; member in X
60 static bool dtor_called; member in Z
65 ~Z() {dtor_called = true;} in ~Z()
71 bool Z::dtor_called = false; member in Z
78 assert(X::dtor_called == false); in main()
80 assert(X::dtor_called == true); in main()
102 assert(Z::dtor_called == false); in main()
109 assert(Z::dtor_called == true); in main()
Demplace.pass.cpp41 static bool dtor_called; member in Y
44 ~Y() {dtor_called = true;} in ~Y()
47 bool Y::dtor_called = false; member in Y
219 Y::dtor_called = false; in main()
226 assert(Y::dtor_called == false); in main()
233 assert(Y::dtor_called == true); in main()
Dassign_value.pass.cpp26 static int dtor_called; member
32 ~ThrowAssign() { ++dtor_called; } in ~ThrowAssign()
34 int ThrowAssign::dtor_called = 0; member in ThrowAssign
227 assert(T::dtor_called == 0); in test_throws()
229 T::dtor_called = 0; in test_throws()
236 assert(T::dtor_called == 0); in test_throws()
238 assert(T::dtor_called == 1); in test_throws()
/external/libcxx/test/std/utilities/optional/optional.specalg/
Dswap.pass.cpp29 static unsigned dtor_called; member in X
33 ~X() {++dtor_called;} in ~X()
38 unsigned X::dtor_called = 0; member in X
44 static unsigned dtor_called; member in Y
47 ~Y() {++dtor_called;} in ~Y()
53 unsigned Y::dtor_called = 0; member in Y
173 assert(X::dtor_called == 0); in main()
182 X::dtor_called = 0; in main()
184 assert(X::dtor_called == 1); in main()
196 X::dtor_called = 0; in main()
[all …]
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.dtor/
Ddtor.pass.cpp24 static bool dtor_called; member in X
26 ~X() {dtor_called = true;} in ~X()
29 bool X::dtor_called = false; member in X
50 assert(X::dtor_called == false); in main()
52 assert(X::dtor_called == true); in main()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.dtor/
Ddtor.pass.cpp29 static bool dtor_called; member in X
31 ~X() {dtor_called = true;} in ~X()
34 bool X::dtor_called = false; member in X
64 assert(X::dtor_called == false); in main()
66 assert(X::dtor_called == true); in main()