+2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to
+ be const or non-const.
+
2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.mi/mi-break.exp (test_breakpoint_commands): Use
"print foo::overload1arg(char***)"
gdb_test "print foo::overload1arg(void)" \
- "\\$$decimal = {int \\(foo \\* const\\)} $hex <foo::overload1arg\\(\\)>" \
+ "\\$$decimal = {int \\(foo \\*( const|)\\)} $hex <foo::overload1arg\\(\\)>" \
"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 <foo::overload1arg\\($t\\)>" \
+ "\\$$decimal = {int \\(foo \\*( const|), $t\\)} $hex <foo::overload1arg\\($t\\)>" \
"print foo::overload1arg($t)"
}