2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / pmem3.C
blob1476266f622493fcdac098993517df529bc50059
1 // { dg-do run  }
2 // Test that comparison of pointers to members does not complain about
3 // contravariance violation.
5 struct A { int i; };
6 struct B : public A { int j; int f (); };
7 int main ()
9   int A::*apm = &A::i;
10   int B::*bpm = apm;
11   return apm != bpm;