Lines Matching refs:pb2
759 constexpr Bottom *pb2 = (Base2*)&derived;
760 static_assert(&pb1 != &pb2, "");
762 static_assert(pb2 == &bot2, "");
765 constexpr Base &fail2 = (Base&)*pb2; // expected-error {{constant expression}} expected-note {{cannot cast object of dynamic type 'const Class::Derived' to type 'Class::Base'}}
771 constexpr Base2 *pok2 = (Base2*)pb2;