1 // Test for composite pointer types, as defined in [expr.rel],
2 // and common pointer to member types, as defined in [expr.eq].
5 struct B : public A { };
11 // The composite type is `A const *'
14 if (ap != bp) // gets bogus error - distinct types
17 // The composite type is `B const *const *'
20 if (p != q) // gets bogus error - distinct types
23 // The common type is `int const B::*'
24 const int A::*apm = &A::i;
26 if (apm != bpm) // gets bogus error - distinct types