2 // Test for composite pointer types, as defined in [expr.rel],
3 // and common pointer to member types, as defined in [expr.eq].
6 struct B : public A { };
12 // The composite type is `A const *'
15 if (ap != bp) // { dg-bogus "" } distinct types
18 // The composite type is `B const *const *'
21 if (p != q) // { dg-bogus "" } distinct types
24 // The common type is `int const B::*'
25 const int A::*apm = &A::i;
27 if (apm != bpm) // { dg-bogus "" } distinct types