OSDN Git Service

* typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / local3.C
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
10 int main()
11 {
12    struct B : public A {
13      void f () { }
14    }; 
15
16    B b;
17 }