* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / cast7.C
blob4f433f424a3c952f008cc8b3f7d5b6f69fede156
1 // { dg-do run  }
2 // Test that we can add cv-quals in a static cast to a pointer-to-base type.
4 struct A { int i; };
5 struct B : public A {};
7 int main()
9   int B::* bp = &B::i;
10   const int A::* ap = static_cast<const int A::*>(bp);
11   return ap != bp;