blob: dc378b23e6f16d83b228d0cc7b50f5adfc8b45d8 [file] [log] [blame]
// Test to make sure g++ can handle target types that aren't identical
// with pointers to members.
struct A { int i; };
struct B : public A { };
int main ()
{
int A::*p = &A::i;
const int B::*q = &A::i;
return p != q;
}