OSDN Git Service

* g++.old-deja/g++.other/eh4.C: Fix typo.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / local3.C
1 // Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not
2 // function-local.
3 // Contributed by Jason Merrill <jason@cygnus.com>
4 // excess errors test
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 }