aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/inherit.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-01-20 19:22:13 +0000
committerDaniel Jacobowitz <drow@false.org>2002-01-20 19:22:13 +0000
commit3e36a0f45e5df8f57422bcbe41b0d0a241b4159b (patch)
tree4400dc8134bc9b07f536a2f6f3f525c8a0403a49 /gdb/testsuite/gdb.c++/inherit.exp
parentb02dede2530b98757773e64f3b6951eea587ab83 (diff)
downloadbinutils-3e36a0f45e5df8f57422bcbe41b0d0a241b4159b.zip
binutils-3e36a0f45e5df8f57422bcbe41b0d0a241b4159b.tar.gz
binutils-3e36a0f45e5df8f57422bcbe41b0d0a241b4159b.tar.bz2
2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/classes.exp: Update for improved v3 support and skipping artificial methods/arguments. * gdb.c++/derivation.exp: Likewise. * gdb.c++/inherit.exp: Likewise. * gdb.c++/method.exp: Likewise. * gdb.c++/virtfunc.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.c++/inherit.exp')
-rw-r--r--gdb/testsuite/gdb.c++/inherit.exp16
1 files changed, 14 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.c++/inherit.exp b/gdb/testsuite/gdb.c++/inherit.exp
index 7e68ec5..58fed77 100644
--- a/gdb/testsuite/gdb.c++/inherit.exp
+++ b/gdb/testsuite/gdb.c++/inherit.exp
@@ -195,7 +195,10 @@ proc test_ptype_si {} {
# cygnus-2.3.3-930417. PR 2819.
send_gdb "ptype tagless_struct\n"
gdb_expect {
- -re "type = class \{${ws}public:${ws}int one;${ws}int two;${ws}tagless_struct & operator=\\(tagless_struct &\\);${ws}\\\$_1 \\(tagless_struct &\\);${ws}\\\$_1 \\(\\);${ws}\}$nl$gdb_prompt $" {
+ -re "type = class \{${ws}public:${ws}int one;${ws}int two;${ws}tagless_struct & operator=\\(tagless_struct (const ?)?&\\);${ws}tagless_struct\\(tagless_struct (const ?)?&\\);${ws}tagless_struct\\(\\);${ws}\}$nl$gdb_prompt $" {
+ pass "ptype tagless struct"
+ }
+ -re "type = class \{${ws}public:${ws}int one;${ws}int two;;${ws}\}$nl$gdb_prompt $" {
pass "ptype tagless struct"
}
-re "type = (struct|class).*\{.*int one;.*int two;.*\}$nl$gdb_prompt $" {
@@ -211,9 +214,12 @@ proc test_ptype_si {} {
send_gdb "ptype v_tagless\n"
gdb_expect {
- -re "type = class \{${ws}public:${ws}int one;${ws}int two;${ws}tagless_struct & operator=\\(tagless_struct &\\);${ws}\\\$_1 \\(tagless_struct &\\);${ws}\\\$_1 \\(\\);${ws}\}$nl$gdb_prompt $" {
+ -re "type = class \{${ws}public:${ws}int one;${ws}int two;${ws}tagless_struct & operator=\\(tagless_struct (const ?)?&\\);${ws}tagless_struct\\(tagless_struct (const ?)?&\\);${ws}tagless_struct\\(\\);${ws}\}$nl$gdb_prompt $" {
pass "ptype variable of type tagless struct"
}
+ -re "type = class \{${ws}public:${ws}int one;${ws}int two;;${ws}\}$nl$gdb_prompt $" {
+ pass "ptype tagless struct"
+ }
-re "type = (struct|class).*\{.*int one;.*int two;.*\}$nl$gdb_prompt $" {
pass "ptype variable of type tagless struct (obsolete gcc or gdb)"
}
@@ -284,6 +290,12 @@ proc test_print_anon_union {} {
-re "type = class class_with_anon_union \{${ws}public:${ws}int one;${ws}union \{${ws}public:${ws}int a;${ws}long int b;${ws}union \{\.\.\.\} & operator=\\(union \{\.\.\.\} &\\);${ws}\\\$_0 \\(union \{\.\.\.\} &\\);${ws}\\\$_0 \\(\\);${ws}\};${ws}class_with_anon_union & operator=\\(class_with_anon_union const &\\);${ws}class_with_anon_union\\(class_with_anon_union const &\\);${ws}class_with_anon_union\\(void\\);${ws}\}$nl$gdb_prompt $" {
pass "print type of anonymous union"
}
+ -re "type = class class_with_anon_union \{${ws}public:${ws}int one;${ws}union \{${ws}int a;${ws}long int b;${ws}\};${ws}class_with_anon_union & operator=\\(class_with_anon_union const ?&\\);${ws}class_with_anon_union\\(class_with_anon_union const ?&\\);${ws}class_with_anon_union\\((void|)\\);${ws}\}$nl$gdb_prompt $" {
+ pass "print type of anonymous union"
+ }
+ -re "type = class class_with_anon_union \{${ws}public:${ws}int one;${ws}union \{${ws}int a;${ws}long int b;${ws}\};${ws}\}$nl$gdb_prompt $" {
+ pass "print type of anonymous union"
+ }
-re "type = (struct|class).*\{.*int one;.*union \{.*int a;.*(long|long int|int) b;.*\};.*\}$nl$gdb_prompt $" {
pass "print type of anonymous union (obsolete gcc or gdb)"
}