diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-14 20:33:29 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-14 20:33:29 +0000 |
commit | 7d27a96df4e297e7329e0e3856c6d6e346478c80 (patch) | |
tree | 577b811b54508d15105168636b95930d432a77da /gdb/testsuite/gdb.cp/templates.exp | |
parent | f8c05d0d192df972af6b1c14aaf9dc8743cfe72e (diff) | |
download | gdb-7d27a96df4e297e7329e0e3856c6d6e346478c80.zip gdb-7d27a96df4e297e7329e0e3856c6d6e346478c80.tar.gz gdb-7d27a96df4e297e7329e0e3856c6d6e346478c80.tar.bz2 |
Partial fix for PR c++/14160:
* c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
* dwarf2read.c (dwarf2_is_constructor): New function.
(dwarf2_add_member_fn): Use it.
* gnu-v3-abi.c (gnuv3_pass_by_reference): Use
TYPE_FN_FIELD_CONSTRUCTOR.
* jv-typeprint.c (java_type_print_base): Use
TYPE_FN_FIELD_CONSTRUCTOR.
* gdbtypes.h (struct fn_field) <is_constructor>: New field.
<dummy>: Shrink.
(TYPE_FN_FIELD_CONSTRUCTOR): New macro.
testsuite
* gdb.cp/templates.exp (test_ptype_of_templates): Update kfails.
Diffstat (limited to 'gdb/testsuite/gdb.cp/templates.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/templates.exp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp index 9ebb3bd..45b67e1 100644 --- a/gdb/testsuite/gdb.cp/templates.exp +++ b/gdb/testsuite/gdb.cp/templates.exp @@ -60,6 +60,14 @@ proc test_ptype_of_templates {} { # This also triggers gdb/1113... kfail "gdb/1111" "ptype T5<int>" # Add here a PASS case when PR gdb/1111 gets fixed. + # These are really: + # http://sourceware.org/bugzilla/show_bug.cgi?id=8216 + # http://sourceware.org/bugzilla/show_bug.cgi?id=8218 + } + -re "type = class T5<int> \{${ws}public:${ws}static int X;${ws}int x;${ws}int val;${ws}T5\\(int\\);${ws}T5\\((T5<int> const|const T5<int>) ?&\\);${ws}~T5\\(int\\);${ws}static void \\* operator new\\((size_t|unsigned( int| long|))\\);${ws}static void operator delete\\(void ?\\*\\);${ws}int value\\((void|)\\);${ws}\}\r\n$gdb_prompt $" { + # http://sourceware.org/bugzilla/show_bug.cgi?id=8218 + # The destructor has an argument type. + kfail "gdb/8218" "ptype T5<int>" } } @@ -89,6 +97,14 @@ proc test_ptype_of_templates {} { # This also triggers gdb/1113... kfail "gdb/1111" "ptype T5<int>" # Add here a PASS case when PR gdb/1111 gets fixed. + # These are really: + # http://sourceware.org/bugzilla/show_bug.cgi?id=8216 + # http://sourceware.org/bugzilla/show_bug.cgi?id=8218 + } + -re "type = class T5<int> \{${ws}public:${ws}static int X;${ws}int x;${ws}int val;${ws}T5\\(int\\);${ws}T5\\((T5<int> const|const T5<int>) ?&\\);${ws}~T5\\(int\\);${ws}static void \\* operator new\\((size_t|unsigned( int| long|))\\);${ws}static void operator delete\\(void ?\\*\\);${ws}int value\\((void|)\\);${ws}\}\r\n$gdb_prompt $" { + # http://sourceware.org/bugzilla/show_bug.cgi?id=8218 + # The destructor has an argument type. + kfail "gdb/8218" "ptype T5<int>" } } } |