From-SVN: r28279
This commit is contained in:
Jason Merrill 1999-07-26 21:11:10 -04:00
parent 809a5db6e4
commit 4c8a3a8994

View File

@ -0,0 +1,17 @@
// Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not
// function-local.
// Contributed by Jason Merrill <jason@cygnus.com>
// excess errors test - XFAIL *-*-*
struct A {
virtual void f () = 0;
};
int main()
{
struct B : public A {
void f () { }
};
B b;
}