Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/ptrmem4.C

raw
1 // { dg-do run }
2 // Test to make sure g++ can handle target types that aren't identical
3 // with pointers to members.
4
5 struct A { int i; };
6 struct B : public A { };
7
8 int main ()
9 {
10 int A::*p = &A::i;
11 const int B::*q = &A::i;
12 return p != q;
13 }