Lines Matching defs:base
544 class Base {};
545 class Derived : public Base {};
569 // are pointers or references to a derived and a base class, correspondingly.
572 Matcher<Base*> m1 = Eq(&d);
577 Matcher<Base&> m3 = Ref(d);
966 // used wherever Ref(base) can be used (Ref(derived) is a sub-type
967 // of Ref(base), but not vice versa.
970 Base base, base2;
972 Matcher<const Base&> m1 = Ref(base);
973 EXPECT_TRUE(m1.Matches(base));
979 EXPECT_FALSE(m1.Matches(base));