Searched defs:pb2 (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/SemaCXX/
H A Dconstant-expression-cxx11.cpp674 constexpr Bottom *pb2 = (Base2*)&derived; variable
675 static_assert(&pb1 != &pb2, "");
677 static_assert(pb2 == &bot2, "");
680 constexpr Base &fail2 = (Base&)*pb2; // expected-error {{constant expression}} expected-note {{cannot cast object of dynamic type 'const Class::Derived' to type 'Class::Base'}}
686 constexpr Base2 *pok2 = (Base2*)pb2;

Completed in 48 milliseconds