gdb/testsuite/
authorDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:09:32 +0000 (21:09 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:09:32 +0000 (21:09 +0000)
* gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to
be const or non-const.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/overload.exp

index d250507fcc88c7cb8ff791aa3097f9639dfeb61d..333637f365cc6b7d1145957e9a8550d506843667 100644 (file)
@@ -1,3 +1,8 @@
+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
index 101be4a5d82bf419ae539a884d2a152584907807..ae8fd2652ada8421d3579d6baa4672d0e9f65358 100644 (file)
@@ -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 <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)"
 }