Lines Matching refs:B
10 class B : public A{ class
16 class BB: public B{};
23 B aa; in testDynCastFromRadar()
26 B *b = dynamic_cast<B*>(a); in testDynCastFromRadar()
37 B b; in testBaseToBase1()
38 B *pb = &b; in testBaseToBase1()
39 B *pbb = dynamic_cast<B*>(pb); in testBaseToBase1()
52 B *pb = &bb; in testMultipleLevelsOfSubclassing1()
54 B *b = dynamic_cast<B*>(pa); in testMultipleLevelsOfSubclassing1()
68 B *b = dynamic_cast<B*>(pbb); in testMultipleLevelsOfSubclassing2()
83 B *b = dynamic_cast<B*>(pbb); in testMultipleLevelsOfSubclassing3()
88 B aa; in testLHS()
90 return (dynamic_cast<B*>(a))->m; in testLHS()
94 B aa; in testLHS2()
96 return (*dynamic_cast<B*>(a)).m; in testLHS2()
100 B *b = dynamic_cast<B*>(a); in testDynCastUnknown2()
105 B *b = dynamic_cast<B*>(a); in testDynCastUnknown()
119 B *b = dynamic_cast<B*>(pa); in testDynCastFail2()
126 return (*dynamic_cast<B*>(a)).m; // expected-warning {{Dereference of null pointer}} in testLHSFail()
131 B *b = dynamic_cast<B*>(&a); in testBaseToDerivedFail()
136 B *b = dynamic_cast<B*>((A *)0); in testConstZeroFail()
142 B *b = dynamic_cast<B*>(a); in testConstZeroFail2()
147 B b; in testUpcast()
173 B rb; in testReferenceSuccessfulCast()
174 B &b = dynamic_cast<B&>(rb); in testReferenceSuccessfulCast()
181 B &b = dynamic_cast<B&>(a); in testReferenceFailedCast()
192 B *b = 0; in testDynCastMostLikelyWillFail()
193 b = dynamic_cast<B*>(c); in testDynCastMostLikelyWillFail()
207 class M : public B, public C {};
220 B *ptr = dynamic_cast<B*>(&ref); in testDynCastToMiddleClass()
224 ptr = dynamic_cast<B*>(&obj); in testDynCastToMiddleClass()
235 B *b = 0; in testDynCastFalsePositive()
236 b = dynamic_cast<B*>(c); in testDynCastFalsePositive()
250 B *b = dynamic_cast<B*>(a); in testDynCastFail3()