1 // Copyright (C) 2007 Free Software Foundation 2 // Contributed by Ollie Wild <aaw@google.com> 3 // { dg-do run } 4 5 // Test for proper conversion of null pointers to data members. 6 7 struct B1 { 8 int x; 9 }; 10 11 struct B2 { 12 int x; 13 }; 14 15 struct D : B1, B2 { 16 int x; 17 }; 18 main()19int main () 20 { 21 int D::*pd = 0; 22 int B2::*pb2 = 0; 23 24 return pd != pb2; 25 } 26