OSDN Git Service

* gdb.c++/classes.exp (ptype class A): Tolerate whitespace
authorJim Blandy <jimb@codesourcery.com>
Tue, 24 Apr 2001 17:39:14 +0000 (17:39 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 24 Apr 2001 17:39:14 +0000 (17:39 +0000)
variations.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.c++/classes.exp

index d8afbe5..69b29c3 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-24  Jim Blandy  <jimb@redhat.com>
+
+       * gdb.c++/classes.exp (ptype class A): Tolerate whitespace
+       variations.
+
 2001-04-22  Michael Chastain  <chastain@redhat.com>
 
        * gdb.c++/local.exp: Use the 'runto' library function.
index 39bc275..2e2e89c 100644 (file)
@@ -224,7 +224,7 @@ proc test_ptype_class_objects {} {
     # it to print as "struct".
     send_gdb "ptype class A\n"
     gdb_expect {
-       -re "type = (class|struct) A \{(${ws}public:|)${ws}int a;${ws}int x;((${ws}A & operator=\\(A const &\\);)|(${ws}A\\(A const &\\);)|(${ws}A\\(void\\);))*${ws}\}$nl$gdb_prompt $" {
+       -re "type = (class|struct) A \{(${ws}public:|)${ws}int a;${ws}int x;((${ws}A & operator=\\(A const ?&\\);)|(${ws}A\\(A const ?&\\);)|(${ws}A\\(void\\);))*${ws}\}$nl$gdb_prompt $" {
            pass "ptype class A"
        }
        -re ".*$gdb_prompt $" {