From 493f3c00fe05de7ea8328027eb585ac89ca61b97 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 16 Feb 2010 21:09:32 +0000 Subject: [PATCH] gdb/testsuite/ * gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to be const or non-const. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.cp/overload.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d250507fcc8..333637f365c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-02-16 Daniel Jacobowitz + + * gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to + be const or non-const. + 2010-02-16 Daniel Jacobowitz * gdb.mi/mi-break.exp (test_breakpoint_commands): Use diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overload.exp index 101be4a5d82..ae8fd2652ad 100644 --- a/gdb/testsuite/gdb.cp/overload.exp +++ b/gdb/testsuite/gdb.cp/overload.exp @@ -348,13 +348,13 @@ gdb_test "print foo::overload1arg(char***)" \ "print foo::overload1arg(char***)" gdb_test "print foo::overload1arg(void)" \ - "\\$$decimal = {int \\(foo \\* const\\)} $hex " \ + "\\$$decimal = {int \\(foo \\*( const|)\\)} $hex " \ "print foo::overload1arg(void)" foreach t [list char "signed char" "unsigned char" "short" \ "unsigned short" int "unsigned int" long "unsigned long" \ float double] { gdb_test "print foo::overload1arg($t)" \ - "\\$$decimal = {int \\(foo \\* const, $t\\)} $hex " \ + "\\$$decimal = {int \\(foo \\*( const|), $t\\)} $hex " \ "print foo::overload1arg($t)" } -- 2.30.2