diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1999-07-26 21:11:10 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-07-26 21:11:10 -0400 |
commit | 4c8a3a899417130f47bc1cbc2f3217e85aca070e (patch) | |
tree | 72226f99d681fc7cc2438976d9ed78124bb7553d /gcc | |
parent | 809a5db6e439f655fa80a4c4bf262d0abd3a3008 (diff) | |
download | gcc-4c8a3a899417130f47bc1cbc2f3217e85aca070e.zip gcc-4c8a3a899417130f47bc1cbc2f3217e85aca070e.tar.gz gcc-4c8a3a899417130f47bc1cbc2f3217e85aca070e.tar.bz2 |
new
From-SVN: r28279
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/local3.C | 17 |
1 files changed, 17 insertions, 0 deletions
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 0000000..f190f3c --- /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 <jason@cygnus.com> +// excess errors test - XFAIL *-*-* + +struct A { + virtual void f () = 0; +}; + +int main() +{ + struct B : public A { + void f () { } + }; + + B b; +} |