]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Adjust C++ destructor type tests
authorJason Merrill <jason@redhat.com>
Fri, 10 May 2024 20:33:20 +0000 (16:33 -0400)
committerTom Tromey <tromey@adacore.com>
Tue, 14 May 2024 14:40:06 +0000 (08:40 -0600)
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>
gdb/testsuite/gdb.cp/m-static.exp

index 19eb70b7d71489c6936088e476f36de41fa146bc..45bc090d01fd9b65d55b19a1a48b2f161f9008c6 100644 (file)
@@ -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'" \