summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/method-ptr.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-31 17:41:09 +0000
committerTom Tromey <tromey@redhat.com>2013-01-31 17:41:09 +0000
commit7078baeb174ad00adf66ba9ec53056834dbaf7e3 (patch)
treebdc0211d2c3f353fa2b8e29de9e685fa2350033d /gdb/testsuite/gdb.dwarf2/method-ptr.cc
parent1d24041adc4750c7dde85345dd6f20e1d3fe5aca (diff)
downloadbinutils-gdb-7078baeb174ad00adf66ba9ec53056834dbaf7e3.tar.gz
PR c++/14998:
* dwarf2read.c (read_tag_ptr_to_member_type): Handle TYPE_CODE_FUNC. gdb/testsuite * gdb.dwarf2/method-ptr.cc: New file. * gdb.dwarf2/method-ptr.exp: New file.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/method-ptr.cc')
-rw-r--r--gdb/testsuite/gdb.dwarf2/method-ptr.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/method-ptr.cc b/gdb/testsuite/gdb.dwarf2/method-ptr.cc
new file mode 100644
index 00000000000..563c443d1aa
--- /dev/null
+++ b/gdb/testsuite/gdb.dwarf2/method-ptr.cc
@@ -0,0 +1,21 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2013 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/>. */
+
+int main ()
+{
+ return 0;
+}