Lines Matching refs:sym
264 ResolveInfo* sym = ResolveInfo::Create("abc"); in TEST_F() local
266 sym->setIsSymbol(true); in TEST_F()
269 ASSERT_TRUE(sym->isSymbol()); in TEST_F()
270 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
271 ASSERT_FALSE(sym->isWeak()); in TEST_F()
272 ASSERT_FALSE(sym->isLocal()); in TEST_F()
273 ASSERT_FALSE(sym->isDefine()); in TEST_F()
274 ASSERT_TRUE(sym->isUndef()); in TEST_F()
275 ASSERT_FALSE(sym->isDyn()); in TEST_F()
276 ASSERT_FALSE(sym->isCommon()); in TEST_F()
277 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
278 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
279 ASSERT_TRUE(0 == sym->desc()); in TEST_F()
280 ASSERT_TRUE(0 == sym->binding()); in TEST_F()
281 ASSERT_TRUE(0 == sym->other()); in TEST_F()
283 sym->setIsSymbol(false); in TEST_F()
284 ASSERT_FALSE(sym->isSymbol()); in TEST_F()
286 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
287 ASSERT_FALSE(sym->isWeak()); in TEST_F()
288 ASSERT_FALSE(sym->isLocal()); in TEST_F()
289 ASSERT_FALSE(sym->isDefine()); in TEST_F()
290 ASSERT_TRUE(sym->isUndef()); in TEST_F()
291 ASSERT_FALSE(sym->isDyn()); in TEST_F()
292 ASSERT_FALSE(sym->isCommon()); in TEST_F()
293 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
294 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
295 ASSERT_TRUE(0 == sym->desc()); in TEST_F()
296 ASSERT_TRUE(0 == sym->binding()); in TEST_F()
297 ASSERT_TRUE(0 == sym->other()); in TEST_F()
299 sym->setDesc(ResolveInfo::Define); in TEST_F()
300 ASSERT_FALSE(sym->isSymbol()); in TEST_F()
302 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
303 ASSERT_FALSE(sym->isWeak()); in TEST_F()
304 ASSERT_FALSE(sym->isLocal()); in TEST_F()
305 ASSERT_TRUE(sym->isDefine()); in TEST_F()
306 ASSERT_FALSE(sym->isUndef()); in TEST_F()
307 ASSERT_FALSE(sym->isDyn()); in TEST_F()
308 ASSERT_FALSE(sym->isCommon()); in TEST_F()
309 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
310 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
311 ASSERT_TRUE(ResolveInfo::Define == sym->desc()); in TEST_F()
312 ASSERT_TRUE(0 == sym->binding()); in TEST_F()
313 ASSERT_TRUE(0 == sym->other()); in TEST_F()
315 sym->setDesc(ResolveInfo::Common); in TEST_F()
316 ASSERT_FALSE(sym->isSymbol()); in TEST_F()
318 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
319 ASSERT_FALSE(sym->isWeak()); in TEST_F()
320 ASSERT_FALSE(sym->isLocal()); in TEST_F()
321 ASSERT_FALSE(sym->isDyn()); in TEST_F()
322 ASSERT_FALSE(sym->isDefine()); in TEST_F()
323 ASSERT_FALSE(sym->isUndef()); in TEST_F()
324 ASSERT_TRUE(sym->isCommon()); in TEST_F()
325 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
326 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
327 ASSERT_TRUE(ResolveInfo::Common == sym->desc()); in TEST_F()
328 ASSERT_TRUE(0 == sym->binding()); in TEST_F()
329 ASSERT_TRUE(0 == sym->other()); in TEST_F()
331 sym->setDesc(ResolveInfo::Indirect); in TEST_F()
332 ASSERT_FALSE(sym->isSymbol()); in TEST_F()
333 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
334 ASSERT_FALSE(sym->isWeak()); in TEST_F()
335 ASSERT_FALSE(sym->isLocal()); in TEST_F()
336 ASSERT_FALSE(sym->isDyn()); in TEST_F()
337 ASSERT_FALSE(sym->isDefine()); in TEST_F()
338 ASSERT_FALSE(sym->isUndef()); in TEST_F()
339 ASSERT_FALSE(sym->isCommon()); in TEST_F()
340 ASSERT_TRUE(sym->isIndirect()); in TEST_F()
341 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
342 ASSERT_TRUE(ResolveInfo::Indirect == sym->desc()); in TEST_F()
343 ASSERT_TRUE(0 == sym->binding()); in TEST_F()
344 ASSERT_TRUE(0 == sym->other()); in TEST_F()
346 sym->setDesc(ResolveInfo::Undefined); in TEST_F()
347 ASSERT_FALSE(sym->isSymbol()); in TEST_F()
348 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
349 ASSERT_FALSE(sym->isWeak()); in TEST_F()
350 ASSERT_FALSE(sym->isLocal()); in TEST_F()
351 ASSERT_FALSE(sym->isDyn()); in TEST_F()
352 ASSERT_TRUE(sym->isUndef()); in TEST_F()
353 ASSERT_FALSE(sym->isDefine()); in TEST_F()
354 ASSERT_FALSE(sym->isCommon()); in TEST_F()
355 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
356 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
357 ASSERT_TRUE(0 == sym->desc()); in TEST_F()
358 ASSERT_TRUE(0 == sym->binding()); in TEST_F()
359 ASSERT_TRUE(0 == sym->other()); in TEST_F()
363 ResolveInfo* sym = ResolveInfo::Create("abc"); in TEST_F() local
365 sym->setIsSymbol(true); in TEST_F()
368 ASSERT_TRUE(sym->isSymbol()); in TEST_F()
369 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
370 ASSERT_FALSE(sym->isWeak()); in TEST_F()
371 ASSERT_FALSE(sym->isLocal()); in TEST_F()
372 ASSERT_FALSE(sym->isDefine()); in TEST_F()
373 ASSERT_TRUE(sym->isUndef()); in TEST_F()
374 ASSERT_FALSE(sym->isDyn()); in TEST_F()
375 ASSERT_FALSE(sym->isCommon()); in TEST_F()
376 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
377 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
378 ASSERT_TRUE(0 == sym->desc()); in TEST_F()
379 ASSERT_TRUE(0 == sym->binding()); in TEST_F()
380 ASSERT_TRUE(0 == sym->other()); in TEST_F()
382 sym->setBinding(ResolveInfo::Global); in TEST_F()
383 ASSERT_TRUE(sym->isSymbol()); in TEST_F()
384 ASSERT_TRUE(sym->isGlobal()); in TEST_F()
385 ASSERT_FALSE(sym->isWeak()); in TEST_F()
386 ASSERT_FALSE(sym->isLocal()); in TEST_F()
387 ASSERT_FALSE(sym->isDefine()); in TEST_F()
388 ASSERT_TRUE(sym->isUndef()); in TEST_F()
389 ASSERT_FALSE(sym->isDyn()); in TEST_F()
390 ASSERT_FALSE(sym->isCommon()); in TEST_F()
391 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
392 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
393 ASSERT_TRUE(0 == sym->desc()); in TEST_F()
394 ASSERT_TRUE(ResolveInfo::Global == sym->binding()); in TEST_F()
395 ASSERT_TRUE(0 == sym->other()); in TEST_F()
397 sym->setBinding(ResolveInfo::Weak); in TEST_F()
398 ASSERT_TRUE(sym->isSymbol()); in TEST_F()
399 ASSERT_FALSE(sym->isGlobal()); in TEST_F()
400 ASSERT_TRUE(sym->isWeak()); in TEST_F()
401 ASSERT_FALSE(sym->isLocal()); in TEST_F()
402 ASSERT_FALSE(sym->isDyn()); in TEST_F()
403 ASSERT_FALSE(sym->isDefine()); in TEST_F()
404 ASSERT_TRUE(sym->isUndef()); in TEST_F()
405 ASSERT_FALSE(sym->isCommon()); in TEST_F()
406 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
407 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
408 ASSERT_TRUE(0 == sym->desc()); in TEST_F()
409 ASSERT_TRUE(ResolveInfo::Weak == sym->binding()); in TEST_F()
410 ASSERT_TRUE(0 == sym->other()); in TEST_F()
412 sym->setBinding(ResolveInfo::Local); in TEST_F()
413 ASSERT_TRUE(sym->isSymbol()); in TEST_F()
414 ASSERT_FALSE(sym->isGlobal()); in TEST_F()
415 ASSERT_FALSE(sym->isWeak()); in TEST_F()
416 ASSERT_TRUE(sym->isLocal()); in TEST_F()
417 ASSERT_FALSE(sym->isDyn()); in TEST_F()
418 ASSERT_FALSE(sym->isDefine()); in TEST_F()
419 ASSERT_TRUE(sym->isUndef()); in TEST_F()
420 ASSERT_FALSE(sym->isCommon()); in TEST_F()
421 ASSERT_FALSE(sym->isIndirect()); in TEST_F()
422 ASSERT_TRUE(ResolveInfo::NoType == sym->type()); in TEST_F()
423 ASSERT_TRUE(0 == sym->desc()); in TEST_F()
424 ASSERT_TRUE(ResolveInfo::Local == sym->binding()); in TEST_F()
425 ASSERT_TRUE(0 == sym->other()); in TEST_F()