Lines Matching defs:base
697 // are pointers or references to a derived and a base class, correspondingly.
798 Base base;
800 EXPECT_THAT(&base, A<Base*>());
801 // This shouldn't compile: EXPECT_THAT(&base, A<Derived*>());
1142 // used wherever Ref(base) can be used (Ref(derived) is a sub-type
1143 // of Ref(base), but not vice versa.
1146 Base base, base2;
1148 Matcher<const Base&> m1 = Ref(base);
1149 EXPECT_TRUE(m1.Matches(base));
1155 EXPECT_FALSE(m1.Matches(base));
3203 Base base;
3208 EXPECT_THAT(&base, Not(WhenDynamicCastTo<Derived*>(Pointee(_))));
3209 EXPECT_THAT(&base, WhenDynamicCastTo<Derived*>(IsNull()));