summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/ovsrch2.cc
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2011-03-16 21:08:57 +0000
committerKeith Seitz <keiths@redhat.com>2011-03-16 21:08:57 +0000
commit598997c828bff87692dc5addca8b7961f227918b (patch)
tree1ceb05e0da46c28cd8257653485f0795dce7eff8 /gdb/testsuite/gdb.cp/ovsrch2.cc
parentc91513d8bcbfd180dbefdb84841661abead0e9c3 (diff)
downloadbinutils-gdb-598997c828bff87692dc5addca8b7961f227918b.tar.gz
PR c++/12273
* gdb.cp/cmpd-minsyms.exp: New test. * gdb.cp/cmpd-minsyms.cc: New file. PR c++/11734 * gdb.cp/ovsrch.exp: New test. * gdb.cp/ovsrch.h: New file. * gdb.cp/ovsrch1.cc: New file. * gdb.cp/ovsrch2.cc: New file. * gdb.cp/ovsrch3.cc: New file. * gdb.cp/ovsrch4.cc: New file.
Diffstat (limited to 'gdb/testsuite/gdb.cp/ovsrch2.cc')
-rw-r--r--gdb/testsuite/gdb.cp/ovsrch2.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/ovsrch2.cc b/gdb/testsuite/gdb.cp/ovsrch2.cc
new file mode 100644
index 00000000000..54a219b33fb
--- /dev/null
+++ b/gdb/testsuite/gdb.cp/ovsrch2.cc
@@ -0,0 +1,28 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2011 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/>. */
+
+#include "ovsrch.h"
+
+void
+A::outer::foo (void) const
+{
+}
+
+void
+A::B::inner::foo (void) const
+{
+}