Debian Codegraph @

gcc/testsuite/g++.dg/expr/ptrmem11.C

raw
1 // PR c++/113599
2 // { dg-do run }
3
4 struct A { void *a; };
5 struct B { void *b; };
6 struct C : public B, public A { A c; };
7 static C d;
8
9 int
10 main ()
11 {
12 A C::*e = &C::c;
13 A *f = &(d.*e);
14 A *g = &d.c;
15 if (f != g)
16 __builtin_abort ();
17 }