2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / ptrmem4.C
blob6df10a99fe2320bd0f0449ec3dd226f195432b9f
1 // { dg-do run  }
2 // Test to make sure g++ can handle target types that aren't identical
3 // with pointers to members.
5 struct A { int i; };
6 struct B : public A { };
8 int main ()
10   int A::*p = &A::i;
11   const int B::*q = &A::i;
12   return p != q;