diff options
author | Pedro Alves <palves@redhat.com> | 2009-01-22 22:50:39 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-01-22 22:50:39 +0000 |
commit | 392452f69e23ab77905cd09a7193941975dd1a0a (patch) | |
tree | 344f66e5492760e848141b9c2efedc11ada125ac /gdb/testsuite/gdb.cp/pr9631.cc | |
parent | 8653e71c5e19cf30457b3a5a9541630ede706aa4 (diff) | |
download | ppe42-binutils-392452f69e23ab77905cd09a7193941975dd1a0a.tar.gz ppe42-binutils-392452f69e23ab77905cd09a7193941975dd1a0a.zip |
2009-01-22 Pedro Alves <pedro@codesourcery.com>
PR c++/9631:
* gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
vbasetype.
2009-01-22 Pedro Alves <pedro@codesourcery.com>
PR c++/9631:
* gdb.cp/pr9631.cc, gdb.cp/pr9631.exp: New.
Diffstat (limited to 'gdb/testsuite/gdb.cp/pr9631.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/pr9631.cc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/pr9631.cc b/gdb/testsuite/gdb.cp/pr9631.cc new file mode 100644 index 0000000000..eb9233e52a --- /dev/null +++ b/gdb/testsuite/gdb.cp/pr9631.cc @@ -0,0 +1,42 @@ +/* This test script is part of GDB, the GNU debugger. + + Copyright 2009, + Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +namespace foo +{ + class vbase + { + public: + virtual ~vbase() {} + }; +}; + +class empty_base +{ +}; + +class bar : public foo::vbase, public virtual empty_base +{ +}; + +int +main(int argc, char *argv[]) +{ + bar tender; + return 0; /* set breakpoint here */ +} |