2003-02-05 Michael Chastain <mec@shout.net>
authorMichael Chastain <mec@google.com>
Thu, 6 Feb 2003 02:04:21 +0000 (02:04 +0000)
committerMichael Chastain <mec@google.com>
Thu, 6 Feb 2003 02:04:21 +0000 (02:04 +0000)
* gdb.c++/local.exp: Relax the test for PR gdb/825 to accept
output for configurations with gcc 2.95.3.

gdb/testsuite/gdb.c++/local.exp

index 5a375c1bec0b2e8c1427226837a7ce4f5c59d9fe..21ceb7ae3db129657040f3db51daecb3795dcb60 100644 (file)
@@ -124,7 +124,7 @@ gdb_expect {
     -re "No symbol \"Local\" in current context.*${gdb_prompt} $" {
         pass "Local out of scope"
     }
-    -re "ptype Local${eol}type = class Local {${eol}  public:${eol}    int loc1;${eol}${eol}    Local & operator=\\(Local const&\\);${eol}    Local\\(Local const&\\);${eol}    Local\\(\\);${eol}    char loc_foo\\(char\\);${eol}}${eol}${gdb_prompt} " {
+    -re "ptype Local${eol}type = class Local {${eol}  public:${eol}    int loc1;${eol}.*${eol}    char loc_foo\\(char\\);${eol}}${eol}${gdb_prompt} " {
         # GCC emits STABS debugging information in a way that doesn't
         # properly preserve the scoping of local classes.  I think
         # we'd need to start using Sun's extensions to stabs to get