Home
last modified time | relevance | path

Searched refs:alive (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/external/python/pybind11/tests/
Dtest_smart_ptr.py40 assert cstats.alive() == 0
64 assert cstats.alive() == 1
66 assert cstats.alive() == 0
87 assert cstats.alive() == 1
89 assert cstats.alive() == 0
99 assert cstats.alive() == 0
109 assert cstats.alive() == 0
126 assert cstats.alive() == 1
128 assert cstats.alive() == 1
130 assert cstats.alive() == 0
[all …]
Dtest_copy_move.py35 assert c_mc.alive() == 0
39 assert c_c.alive() == 0
42 assert c_m.alive() + c_mc.alive() + c_c.alive() == 0
74 assert c_m.alive() + c_mc.alive() + c_c.alive() == 0
106 assert c_m.alive() + c_mc.alive() + c_c.alive() == 0
Dtest_factory_constructors.py19 cstats[0].alive() # force gc
54 assert [i.alive() for i in cstats] == [3, 3, 3]
58 assert [i.alive() for i in cstats] == [2, 2, 1]
61 assert [i.alive() for i in cstats] == [0, 0, 0]
112 cstats[0].alive() # force gc
132 assert [i.alive() for i in cstats] == [5, 3, 2]
135 assert [i.alive() for i in cstats] == [4, 2, 2]
139 assert [i.alive() for i in cstats] == [1, 0, 1]
143 assert [i.alive() for i in cstats] == [0, 0, 0]
157 cstats[0].alive() # force gc
[all …]
/external/llvm-project/llvm/test/Transforms/CorrelatedValuePropagation/
Dguards.ll7 ; CHECK: %alive = icmp eq i32 %a, 8
8 ; CHECK-NEXT: %result = or i1 false, %alive
12 %alive = icmp eq i32 %a, 8
13 %result = or i1 %dead, %alive
20 ; CHECK-NEXT: %alive = icmp eq i32 %a, 8
21 ; CHECK-NEXT: %result = or i1 false, %alive
28 %alive = icmp eq i32 %a, 8
29 %result = or i1 %dead, %alive
36 ; CHECK-NEXT: %alive.1 = icmp eq i32 %a, 16
37 ; CHECK-NEXT: %alive.2 = icmp eq i32 %a, 8
[all …]
/external/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/
Dfullexpr-dtor.pass.cpp19 int alive = 0; variable
23 assert(alive == 0); in reset()
24 alive = 0; in reset()
29 Noisy() { ++alive; ++ctor_called; } in Noisy()
30 ~Noisy() { --alive; ++dtor_called; } in ~Noisy()
62 assert(alive == 1); in a()
67 assert(alive == 0); in a()
77 assert(alive == 0); in b()
81 assert(alive == 0); in b()
89 assert(alive == 1); in c()
[all …]
/external/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/
Dfullexpr-dtor.pass.cpp20 int alive = 0; variable
24 assert(alive == 0); in reset()
25 alive = 0; in reset()
30 Noisy() { ++alive; ++ctor_called; } in Noisy()
31 ~Noisy() { --alive; ++dtor_called; } in ~Noisy()
63 assert(alive == 1); in a()
68 assert(alive == 0); in a()
78 assert(alive == 0); in b()
82 assert(alive == 0); in b()
90 assert(alive == 1); in c()
[all …]
/external/libcxx/test/support/
Dvariant_test_helpers.hpp34 static int alive; member
35 MoveThrows() { ++alive; } in MoveThrows()
36 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows()
40 ~MoveThrows() { --alive; } in ~MoveThrows()
43 int MoveThrows::alive = 0; member in MoveThrows
46 static int alive; member
47 MakeEmptyT() { ++alive; } in MakeEmptyT()
49 ++alive; in MakeEmptyT()
62 ~MakeEmptyT() { --alive; } in ~MakeEmptyT()
66 int MakeEmptyT::alive = 0; member in MakeEmptyT
Darchetypes.hpp30 static int alive; member
43 assert(alive == 0); in reset()
44 alive = 0; in reset()
55 ++alive; ++constructed; ++default_constructed; in TestBase()
59 ++alive; ++constructed; ++value_constructed; in TestBase()
63 ++alive; ++constructed; ++value_constructed; in TestBase()
67 ++alive; ++constructed; ++value_constructed; in TestBase()
71 ++alive; ++constructed; ++value_constructed; in TestBase()
76 ++alive; ++constructed; ++value_constructed; in TestBase()
80 ++alive; ++constructed; ++value_constructed; in TestBase()
[all …]
/external/llvm-project/libcxx/test/support/
Dvariant_test_helpers.h42 static int alive; member
43 MoveThrows() { ++alive; } in MoveThrows()
44 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows()
48 ~MoveThrows() { --alive; } in ~MoveThrows()
51 int MoveThrows::alive = 0;
54 static int alive; member
55 MakeEmptyT() { ++alive; } in MakeEmptyT()
57 ++alive; in MakeEmptyT()
70 ~MakeEmptyT() { --alive; } in ~MakeEmptyT()
74 int MakeEmptyT::alive = 0;
Darchetypes.h38 static int alive; member
51 assert(alive == 0); in reset()
52 alive = 0; in reset()
63 ++alive; ++constructed; ++default_constructed; in TestBase()
67 ++alive; ++constructed; ++value_constructed; in TestBase()
71 ++alive; ++constructed; ++value_constructed; in TestBase()
75 ++alive; ++constructed; ++value_constructed; in TestBase()
79 ++alive; ++constructed; ++value_constructed; in TestBase()
84 ++alive; ++constructed; ++value_constructed;
88 ++alive; ++constructed; ++value_constructed;
[all …]
/external/proguard/src/proguard/optimize/evaluation/
DLivenessAnalyzer.java59 private long alive; field in LivenessAnalyzer
106 public void setAliveBefore(int instructionOffset, int variableIndex, boolean alive) in setAliveBefore() argument
110 if (alive) in setAliveBefore()
137 public void setAliveAfter(int instructionOffset, int variableIndex, boolean alive) in setAliveAfter() argument
141 if (alive) in setAliveAfter()
220 alive = 0L; in visitCodeAttribute()
232 alive = combinedLiveness(branchTargets); in visitCodeAttribute()
236 alive |= isAliveAfter[offset]; in visitCodeAttribute()
239 isAliveAfter[offset] = alive; in visitCodeAttribute()
245 alive |= isAliveBefore[offset]; in visitCodeAttribute()
[all …]
/external/llvm-project/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dmove.pass.cpp29 static int alive; member
31 X() { ++alive; } in X()
36 ++alive; in X()
46 ~X() { assert(alive > 0); --alive; } in ~X()
52 int X::alive = 0; member in X
100 assert(T::alive == 1); in main()
102 assert(T::alive == 0); in main()
136 X::alive = 0; in main()
140 assert(X::alive == 1); in main()
153 assert(X::alive == 1); in main()
[all …]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dmove.pass.cpp30 static int alive; member
32 X() { ++alive; } in X()
37 ++alive; in X()
47 ~X() { assert(alive > 0); --alive; } in ~X()
53 int X::alive = 0; member in X
101 assert(T::alive == 1); in main()
103 assert(T::alive == 0); in main()
137 X::alive = 0; in main()
141 assert(X::alive == 1); in main()
154 assert(X::alive == 1); in main()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/
DBuilderWithUnwrappedTest.java40 private final boolean alive; field in BuilderWithUnwrappedTest.Person
46 alive = builder.alive; in Person()
62 return alive; in isAlive()
70 private boolean alive; field in BuilderWithUnwrappedTest.Person.Builder
87 void setAlive(boolean alive) { in setAlive() argument
88 this.alive = alive; in setAlive()
102 private final boolean alive; field in BuilderWithUnwrappedTest.Animal
108 alive = builder.alive; in Animal()
124 return alive; in isAlive()
132 private final boolean alive; field in BuilderWithUnwrappedTest.Animal.Builder
[all …]
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dcopy.pass.cpp63 static int alive; member
69 copy_construct = copy_assign = move_construct = move_assign = alive = 0; in reset()
71 CopyAssign(int v) : value(v) { ++alive; } in CopyAssign()
73 ++alive; in CopyAssign()
78 ++alive; in CopyAssign()
92 ~CopyAssign() { --alive; } in ~CopyAssign()
96 int CopyAssign::alive = 0; member in CopyAssign
161 static int alive; member
162 CopyCannotThrow() { ++alive; } in CopyCannotThrow()
163 CopyCannotThrow(const CopyCannotThrow &) noexcept { ++alive; } in CopyCannotThrow()
[all …]
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dcopy.pass.cpp56 static int alive; member
62 copy_construct = copy_assign = move_construct = move_assign = alive = 0; in reset()
64 CopyAssign(int v) : value(v) { ++alive; } in CopyAssign()
66 ++alive; in CopyAssign()
71 ++alive; in CopyAssign()
85 ~CopyAssign() { --alive; } in ~CopyAssign()
89 int CopyAssign::alive = 0; member in CopyAssign
154 static int alive; member
155 CopyCannotThrow() { ++alive; } in CopyCannotThrow()
156 CopyCannotThrow(const CopyCannotThrow &) noexcept { ++alive; } in CopyCannotThrow()
[all …]
/external/python/cpython3/Lib/test/
Dfork_wait.py25 self.alive = {}
40 self.alive[id] = os.getpid()
57 while len(self.alive) < NUM_THREADS:
62 a = sorted(self.alive.keys())
65 prefork_lives = self.alive.copy()
76 for key in self.alive:
77 if self.alive[key] != prefork_lives[key]:
/external/llvm-project/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
Dmove.pass.cpp97 assert(T::alive == 1); in test_reference_extension()
103 assert(T::alive == 0); in test_reference_extension()
111 assert(T::alive == 1); in test_reference_extension()
116 assert(T::alive == 0); in test_reference_extension()
123 assert(T::alive == 1); in test_reference_extension()
128 assert(T::alive == 0); in test_reference_extension()
137 assert(T::alive == 1); in test_reference_extension()
142 assert(T::alive == 0); in test_reference_extension()
168 assert(T::alive == 0); in main()
172 assert(T::alive == 0); in main()
[all …]
Dcopy.pass.cpp88 assert(T::alive == 1); in test_reference_extension()
94 assert(T::alive == 0); in test_reference_extension()
102 assert(T::alive == 1); in test_reference_extension()
107 assert(T::alive == 0); in test_reference_extension()
132 assert(T::alive == 0); in main()
135 assert(T::alive == 0); in main()
142 assert(T::alive == 1); in main()
148 assert(T::alive == 2); in main()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
Dmove.pass.cpp100 assert(T::alive == 1); in test_reference_extension()
106 assert(T::alive == 0); in test_reference_extension()
114 assert(T::alive == 1); in test_reference_extension()
119 assert(T::alive == 0); in test_reference_extension()
126 assert(T::alive == 1); in test_reference_extension()
131 assert(T::alive == 0); in test_reference_extension()
140 assert(T::alive == 1); in test_reference_extension()
145 assert(T::alive == 0); in test_reference_extension()
171 assert(T::alive == 0); in main()
175 assert(T::alive == 0); in main()
[all …]
Dcopy.pass.cpp89 assert(T::alive == 1); in test_reference_extension()
95 assert(T::alive == 0); in test_reference_extension()
103 assert(T::alive == 1); in test_reference_extension()
108 assert(T::alive == 0); in test_reference_extension()
133 assert(T::alive == 0); in main()
136 assert(T::alive == 0); in main()
143 assert(T::alive == 1); in main()
149 assert(T::alive == 2); in main()
/external/libchrome/base/containers/
Dstack_container_unittest.cc21 explicit Dummy(int* alive) : alive_(alive) { in Dummy() argument
85 int alive = 0; in TEST() local
86 scoped_refptr<Dummy> dummy(new Dummy(&alive)); in TEST()
87 EXPECT_EQ(alive, 1); in TEST()
90 EXPECT_EQ(alive, 1); in TEST()
94 EXPECT_EQ(alive, 1); in TEST()
99 EXPECT_EQ(alive, 0); in TEST()
/external/python/cpython2/Lib/test/
Dfork_wait.py28 self.alive = {}
43 self.alive[id] = os.getpid()
69 a = self.alive.keys()
73 prefork_lives = self.alive.copy()
84 for key in self.alive:
85 if self.alive[key] != prefork_lives[key]:
/external/pdfium/core/fxcrt/
Dautorestorer_unittest.cpp91 EXPECT_TRUE(obj1.alive()); in TEST()
96 EXPECT_TRUE(obj1.alive()); in TEST()
103 EXPECT_TRUE(obj1.alive()); in TEST()
108 EXPECT_FALSE(obj2.alive()); in TEST()
126 EXPECT_TRUE(obj1.alive()); in TEST()
158 EXPECT_FALSE(obj1.alive()); in TEST()
163 EXPECT_TRUE(obj2.alive()); in TEST()
/external/webrtc/rtc_base/task_utils/
Dpending_task_safety_flag_unittest.cc43 EXPECT_TRUE(owner.flag_->alive()); in TEST()
45 EXPECT_TRUE(safety_flag->alive()); in TEST()
48 EXPECT_FALSE(safety_flag->alive()); in TEST()
58 EXPECT_TRUE(safety_flag->alive()); in TEST()
61 EXPECT_FALSE(safety_flag->alive()); in TEST()
79 if (!safe->alive()) in TEST()

12345678910>>...14