1// Test that we can add cv-quals in a static cast to a pointer-to-base type. 2 3struct A { int i; }; 4struct B : public A {}; 5 6int main() 7{ 8 int B::* bp = &B::i; 9 const int A::* ap = static_cast<const int A::*>(bp); 10 return ap != bp; 11} 12