2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / offset3.C
blobc419b2e1180515d436f63727c3a6fd52edfab905
1 // { dg-do assemble  }
2 // PRMS Id: 5070 (bug 2)
4 struct A {
5   void f ();
6 };
8 struct Ptr {
9   A* operator->();
12 struct B {
13   Ptr p;
16 struct C: public B {
17   void g ();
20 void C::g() {
21   B::p->f();                    // { dg-bogus "" }