2016-09-26 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / g++.dg / conversion / ptrmem8.C
blob95d902fa9e7315d45a16442919138c455677abec
1 // Copyright (C) 2007 Free Software Foundation
2 // Contributed by Ollie Wild <aaw@google.com>
3 // { dg-do run }
5 // Test for proper conversion of null pointers to data members.
7 struct B1 {
8   int x;
9 };
11 struct B2 {
12   int x;
15 struct D : B1, B2 {
16   int x;
19 int main ()
21   int D::*pd = 0;
22   int B2::*pb2 = 0;
24   return pd != pb2;