1 // { dg-do run } 2 // Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not 3 // function-local. 4 // Contributed by Jason Merrill <jason@cygnus.com> 5 6 struct A { 7 virtual void f () = 0; 8 }; 9 main()10int main() 11 { 12 struct B : public A { 13 void f () { } 14 }; 15 16 B b; 17 } 18