Lines Matching refs:old_sym
53 ResolveInfo* old_sym = ResolveInfo::Create("abc");
56 old_sym->setDesc(ResolveInfo::Define);
58 ASSERT_TRUE( mcld::ResolveInfo::Define == old_sym->desc());
60 ASSERT_TRUE( mcld::ResolveInfo::define_flag == old_sym->info());
62 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
68 ResolveInfo* old_sym = ResolveInfo::Create("abc");
72 old_sym->setBinding(ResolveInfo::Global);
74 old_sym->setDesc(ResolveInfo::Define);
76 old_sym->setSource(true);
80 old_sym->setSize(1);
83 ASSERT_TRUE( mcld::ResolveInfo::Global == old_sym->binding());
85 ASSERT_TRUE( mcld::ResolveInfo::Define == old_sym->desc());
88 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
91 ASSERT_TRUE(1 == old_sym->size());
95 ResolveInfo* old_sym = ResolveInfo::Create("abc");
99 old_sym->setBinding(ResolveInfo::Global);
101 old_sym->setDesc(ResolveInfo::Define);
103 old_sym->setSource(true);
107 old_sym->setSize(1);
110 ASSERT_TRUE( mcld::ResolveInfo::Global == old_sym->binding());
112 ASSERT_TRUE( mcld::ResolveInfo::Define == old_sym->desc());
115 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
118 ASSERT_TRUE(1 == old_sym->size());
122 ResolveInfo* old_sym = ResolveInfo::Create("abc");
126 old_sym->setBinding(ResolveInfo::Global);
128 old_sym->setDesc(ResolveInfo::Undefined);
130 old_sym->setSource(true);
134 old_sym->setSize(1);
137 ASSERT_TRUE( mcld::ResolveInfo::Global == old_sym->binding());
139 ASSERT_TRUE( mcld::ResolveInfo::Undefined == old_sym->desc());
142 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
145 ASSERT_TRUE(1 == old_sym->size());
150 ResolveInfo* old_sym = ResolveInfo::Create("abc");
154 old_sym->setBinding(ResolveInfo::Weak);
156 old_sym->setSize(1);
159 ASSERT_TRUE( mcld::ResolveInfo::Weak == old_sym->binding());
162 ASSERT_TRUE( mcld::ResolveInfo::weak_flag == old_sym->info());
164 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
167 ASSERT_TRUE(0 == old_sym->size());
171 ResolveInfo* old_sym = ResolveInfo::Create("abc");
174 old_sym->setBinding(ResolveInfo::Weak);
178 old_sym->setSource(true);
180 old_sym->setDesc(ResolveInfo::Define);
185 old_sym->setSize(1);
187 ASSERT_TRUE( mcld::ResolveInfo::Weak == old_sym->binding());
189 ASSERT_TRUE( mcld::ResolveInfo::Define == old_sym->desc());
193 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
196 ASSERT_TRUE(1 == old_sym->size());
201 ResolveInfo* old_sym = ResolveInfo::Create("abc");
205 old_sym->setDesc(ResolveInfo::Common);
207 old_sym->setSize(0);
210 ASSERT_TRUE( mcld::ResolveInfo::Common == old_sym->desc());
213 ASSERT_TRUE( mcld::ResolveInfo::common_flag == old_sym->info());
215 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
218 ASSERT_TRUE(999 == old_sym->size());
223 ResolveInfo* old_sym = ResolveInfo::Create("abc");
227 old_sym->setDesc(ResolveInfo::Common);
228 old_sym->setBinding(ResolveInfo::Weak);
230 old_sym->setSize(0);
233 ASSERT_TRUE( ResolveInfo::Common == old_sym->desc());
234 ASSERT_TRUE( ResolveInfo::Weak == old_sym->binding());
237 ASSERT_TRUE( (ResolveInfo::weak_flag | ResolveInfo::common_flag) == old_sym->info());
240 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
243 ASSERT_TRUE(999 == old_sym->size());
248 ResolveInfo* old_sym = ResolveInfo::Create("abc");
251 old_sym->setDesc(ResolveInfo::Common);
252 old_sym->setSize(0);
258 ASSERT_TRUE( ResolveInfo::Common == old_sym->desc());
261 ASSERT_TRUE( ResolveInfo::common_flag == old_sym->info());
264 bool result = m_pResolver->resolve(*old_sym, *new_sym, override);
267 ASSERT_TRUE(999 == old_sym->size());