]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
new
authorJason Merrill <jason@gcc.gnu.org>
Tue, 27 Jul 1999 01:11:10 +0000 (21:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 27 Jul 1999 01:11:10 +0000 (21:11 -0400)
From-SVN: r28279

gcc/testsuite/g++.old-deja/g++.other/local3.C [new file with mode: 0644]

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 (file)
index 0000000..f190f3c
--- /dev/null
@@ -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;
+}