1// { dg-do run }2// Test that we can add cv-quals in a static cast to a pointer-to-base type.34structA { inti; };
5structB : publicA {};
6main()7intmain()8{
9intB::* bp = &B::i;
10constintA::* ap = static_cast<constintA::*>(bp);
11returnap != bp;
12}
13