diff options
author | Jason Merrill <jason@redhat.com> | 2024-05-10 16:33:20 -0400 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-05-14 08:40:06 -0600 |
commit | f1fe1d35c855b9abaf1fb0a347e5de2e12994b1a (patch) | |
tree | acd040264cd724b9153157b97d3486c78e7cc3b9 | |
parent | b9a16391e8fa89cb986b0788040f59cb8a089e81 (diff) | |
download | gdb-f1fe1d35c855b9abaf1fb0a347e5de2e12994b1a.zip gdb-f1fe1d35c855b9abaf1fb0a347e5de2e12994b1a.tar.gz gdb-f1fe1d35c855b9abaf1fb0a347e5de2e12994b1a.tar.bz2 |
Adjust C++ destructor type tests
In gcc-15-95-ga12cae97390 I dropped the unnecessary artificial "in-charge"
parameter from destructors of classes with no virtual bases; Linaro's CI
informed me that the gdb testsuite needs to be adjusted to match.
Teested against GCC 13.2 and GCC 15 trunk.
Approved-by: Kevin Buettner <kevinb@redhat.com>
-rw-r--r-- | gdb/testsuite/gdb.cp/m-static.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-static.exp index 19eb70b..45bc090 100644 --- a/gdb/testsuite/gdb.cp/m-static.exp +++ b/gdb/testsuite/gdb.cp/m-static.exp @@ -79,14 +79,14 @@ if { [is_aarch32_target] } { "simple object class, ptype constructor" gdb_test "print test1.~gnu_obj_1" \ - { = {void \*\(gnu_obj_1 \* const, int\)} 0x[0-9a-f]+ <gnu_obj_1::~gnu_obj_1\(\)>} \ + { = {void \*\(gnu_obj_1 \* const(, int)?\)} 0x[0-9a-f]+ <gnu_obj_1::~gnu_obj_1\(\)>} \ "simple object instance, print destructor" gdb_test "ptype test1.~gnu_obj_1" \ - {type = void \*\(gnu_obj_1 \* const, int\)} \ + {type = void \*\(gnu_obj_1 \* const(, int)?\)} \ "simple object instance, ptype destructor" gdb_test "print test1.'~gnu_obj_1'" \ - { = {void \*\(gnu_obj_1 \*( const)?, int\)} 0x[0-9a-f]+ <gnu_obj_1::~gnu_obj_1\(\)>} \ + { = {void \*\(gnu_obj_1 \*( const)?(, int)?\)} 0x[0-9a-f]+ <gnu_obj_1::~gnu_obj_1\(\)>} \ "simple object instance, print quoted destructor" gdb_test "ptype gnu_obj_1::'~gnu_obj_1'" \ |