summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/const2.C
blob: fd2be1f44448d1098ee9d89de8b7ab61794d22ab (plain)
1
2
3
4
5
6
7
8
9
10
11
struct B {};
struct D : public B {};

typedef int B::*bm;
typedef int D::*dm;

bm bp;

void f() {
  const_cast<dm>(bp); // { dg-error "" }
}