Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/memory/default.allocator/allocator.members/
Dconstruct.pass.cpp21 int A_constructed = 0; variable
26 A() {++A_constructed;} in A()
28 A(const A&) {++A_constructed;} in A()
30 explicit A(int) {++A_constructed;} in A()
31 A(int, int*) {++A_constructed;} in A()
33 ~A() {--A_constructed;} in ~A()
62 assert(A_constructed == 0); in main()
69 assert(A_constructed == 0); in main()
73 assert(A_constructed == 1); in main()
77 assert(A_constructed == 0); in main()
[all …]
/external/libcxx/test/std/utilities/memory/storage.iterator/
Draw_storage_iterator.base.pass.cpp25 int A_constructed = 0; variable
31 explicit A(int i) : data_(i) {++A_constructed;} in A()
33 A(const A& a) : data_(a.data_) {++A_constructed;} in A()
34 ~A() {--A_constructed; data_ = 0;} in ~A()
47 assert(A_constructed == 0); in main()
54 assert(A_constructed == i+1); in main()
Draw_storage_iterator.pass.cpp25 int A_constructed = 0; variable
31 explicit A(int i) : data_(i) {++A_constructed;} in A()
33 A(const A& a) : data_(a.data_) {++A_constructed;} in A()
34 ~A() {--A_constructed; data_ = 0;} in ~A()
48 assert(A_constructed == 0); in main()
54 assert(A_constructed == i+1); in main()
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/
Dnew.pass.cpp30 bool A_constructed = false; variable
34 A() {A_constructed = true;} in A()
35 ~A() {A_constructed = false;} in ~A()
59 assert(A_constructed); in main()
61 assert(!A_constructed); in main()
Dnew_nothrow.pass.cpp30 bool A_constructed = false; variable
34 A() {A_constructed = true;} in A()
35 ~A() {A_constructed = false;} in ~A()
57 assert(A_constructed); in main()
59 assert(!A_constructed); in main()
Dnew_replace.pass.cpp38 bool A_constructed = false; variable
42 A() {A_constructed = true;} in A()
43 ~A() {A_constructed = false;} in ~A()
51 assert(A_constructed); in main()
55 assert(!A_constructed); in main()
Dnew_nothrow_replace.pass.cpp39 bool A_constructed = false; variable
43 A() {A_constructed = true;} in A()
44 ~A() {A_constructed = false;} in ~A()
52 assert(A_constructed); in main()
56 assert(!A_constructed); in main()
Dnew_align_val_t.pass.cpp63 bool A_constructed = false; variable
67 A() {A_constructed = true;} in A()
68 ~A() {A_constructed = false;} in ~A()
98 assert(A_constructed); in main()
100 assert(!A_constructed); in main()
Dnew_align_val_t_nothrow.pass.cpp63 bool A_constructed = false; variable
67 A() {A_constructed = true;} in A()
68 ~A() {A_constructed = false;} in ~A()
100 assert(A_constructed); in main()
102 assert(!A_constructed); in main()
Dnew_align_val_t_replace.pass.cpp29 bool A_constructed = false; variable
32 A() {A_constructed = true;} in A()
33 ~A() {A_constructed = false;} in ~A()
75 assert(A_constructed); in main()
78 assert(!A_constructed); in main()
Dnew_align_val_t_nothrow_replace.pass.cpp53 bool A_constructed = false; variable
57 A() {A_constructed = true;} in A()
58 ~A() {A_constructed = false;} in ~A()
95 assert(A_constructed); in main()
98 assert(!A_constructed); in main()
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/
Dnew_array.pass.cpp30 int A_constructed = 0; variable
34 A() {++A_constructed;} in A()
35 ~A() {--A_constructed;} in ~A()
60 assert(A_constructed == 3); in main()
63 assert(A_constructed == 0); in main()
Dnew_array_replace.pass.cpp40 int A_constructed = 0; variable
44 A() {++A_constructed;} in A()
45 ~A() {--A_constructed;} in ~A()
53 assert(A_constructed == 3); in main()
57 assert(A_constructed == 0); in main()
Dnew_array_nothrow.pass.cpp30 int A_constructed = 0; variable
34 A() {++A_constructed;} in A()
35 ~A() {--A_constructed;} in ~A()
59 assert(A_constructed == 3); in main()
62 assert(A_constructed == 0); in main()
Dnew_array_nothrow_replace.pass.cpp39 int A_constructed = 0; variable
43 A() {++A_constructed;} in A()
44 ~A() {--A_constructed;} in ~A()
52 assert(A_constructed == 3); in main()
56 assert(A_constructed == 0); in main()
Dnew_align_val_t.pass.cpp63 int A_constructed = 0; variable
67 A() { ++A_constructed;} in A()
68 ~A() { --A_constructed;} in ~A()
98 assert(A_constructed == 2); in main()
100 assert(A_constructed == 0); in main()
Dnew_align_val_t_nothrow.pass.cpp63 int A_constructed = 0; variable
67 A() { ++A_constructed; } in A()
68 ~A() { --A_constructed; } in ~A()
100 assert(A_constructed == 3); in main()
102 assert(!A_constructed); in main()
Dnew_align_val_t_replace.pass.cpp29 int A_constructed = 0; variable
32 A() { ++A_constructed;} in A()
33 ~A() { --A_constructed;} in ~A()
75 assert(A_constructed == 3); in main()
78 assert(!A_constructed); in main()
Dnew_align_val_t_nothrow_replace.pass.cpp52 int A_constructed = 0; variable
56 A() {++A_constructed;} in A()
57 ~A() {--A_constructed;} in ~A()
93 assert(A_constructed == 2); in main()
96 assert(A_constructed == 0); in main()
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.placement/
Dnew.pass.cpp15 int A_constructed = 0; variable
19 A() {++A_constructed;} in A()
20 ~A() {--A_constructed;} in ~A()
29 assert(A_constructed == 1); in main()
Dnew_array.pass.cpp15 int A_constructed = 0; variable
19 A() {++A_constructed;} in A()
20 ~A() {--A_constructed;} in ~A()
33 assert(A_constructed == Size); in main()