From 4c8a3a899417130f47bc1cbc2f3217e85aca070e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 26 Jul 1999 21:11:10 -0400 Subject: [PATCH] new From-SVN: r28279 --- gcc/testsuite/g++.old-deja/g++.other/local3.C | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/local3.C diff --git a/gcc/testsuite/g++.old-deja/g++.other/local3.C b/gcc/testsuite/g++.old-deja/g++.other/local3.C new file mode 100644 index 00000000000..f190f3c74ac --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/local3.C @@ -0,0 +1,17 @@ +// Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not +// function-local. +// Contributed by Jason Merrill +// excess errors test - XFAIL *-*-* + +struct A { + virtual void f () = 0; +}; + +int main() +{ + struct B : public A { + void f () { } + }; + + B b; +} -- 2.30.2