new
From-SVN: r28279
This commit is contained in:
parent
809a5db6e4
commit
4c8a3a8994
17
gcc/testsuite/g++.old-deja/g++.other/local3.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.other/local3.C
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user