From 7078baeb174ad00adf66ba9ec53056834dbaf7e3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 31 Jan 2013 17:41:09 +0000 Subject: 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. --- gdb/testsuite/gdb.dwarf2/method-ptr.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gdb/testsuite/gdb.dwarf2/method-ptr.cc (limited to 'gdb/testsuite/gdb.dwarf2/method-ptr.cc') diff --git a/gdb/testsuite/gdb.dwarf2/method-ptr.cc b/gdb/testsuite/gdb.dwarf2/method-ptr.cc new file mode 100644 index 0000000..563c443 --- /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 . */ + +int main () +{ + return 0; +} -- cgit v1.1