aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/derivation.exp
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-01-09 04:57:09 +0000
committerMichael Chastain <mec@google.com>2004-01-09 04:57:09 +0000
commit8f25f06bfe2d8077867b96f82102cef1b5139c08 (patch)
tree1f3732f72498776f7ae164996cec8b88bb8923f3 /gdb/testsuite/gdb.cp/derivation.exp
parent78849248c05bbfd4aec63ab945195eac6e4224b0 (diff)
downloadgdb-8f25f06bfe2d8077867b96f82102cef1b5139c08.zip
gdb-8f25f06bfe2d8077867b96f82102cef1b5139c08.tar.gz
gdb-8f25f06bfe2d8077867b96f82102cef1b5139c08.tar.bz2
2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/classes.exp: Accept gnu abi 2. * gdb.cp/derivation.exp: Likewise. * gdb.cp/overload.exp: Likewise. * gdb.cp/virtfunc.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.cp/derivation.exp')
-rw-r--r--gdb/testsuite/gdb.cp/derivation.exp20
1 files changed, 7 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/derivation.exp
index 0dec65b..5f75899 100644
--- a/gdb/testsuite/gdb.cp/derivation.exp
+++ b/gdb/testsuite/gdb.cp/derivation.exp
@@ -84,9 +84,7 @@ gdb_test_multiple "ptype a_instance" "ptype a_instance" {
pass "ptype a_instance (with synth ops)"
}
-re "type = $re_class${ws}$re_fields${ws}$re_methods${ws}$re_synth_gcc_23$nl\}$nl$gdb_prompt $" {
- # TODO: this is fine, it's just gcc abi 2
- # pass "ptype a_instance (with synth ops) (abi 2)"
- fail "ptype a_instance"
+ pass "ptype a_instance (with synth ops)"
}
}
@@ -107,16 +105,15 @@ gdb_test_multiple "print d_instance" "print value of d_instance" {
gdb_test_multiple "ptype d_instance" "ptype d_instance" {
-re "type = $re_class${ws}$re_fields${ws}$re_methods${ws}$re_synth_gcc_23$nl\}$nl$gdb_prompt $" {
- # TODO: this is okay, gcc abi 2.
- fail "ptype d_instance"
+ pass "ptype d_instance"
}
-re "type = $re_class${ws}$re_fields${ws}$re_all_methods$nl\}$nl$gdb_prompt $" {
pass "ptype d_instance"
}
-re "type = $XX_class${ws}$re_fields${ws}$re_methods${ws}$re_synth_gcc_23$nl\}$nl$gdb_prompt $" {
- # TODO: this is okay, gcc abi 2.
+ # TODO: this is a gcc bug
# kfail "gdb/1498" "ptype d_instance"
- fail "ptype d_instance"
+ pass "ptype d_instance"
}
-re "type = $XX_class${ws}$re_fields${ws}$re_all_methods$nl\}$nl$gdb_prompt $" {
# TODO: this is a gcc bug.
@@ -142,17 +139,15 @@ gdb_test_multiple "print e_instance" "print value of e_instance" {
gdb_test_multiple "ptype e_instance" "ptype e_instance" {
-re "type = $re_class${ws}$re_fields${ws}$re_methods${ws}$re_synth_gcc_23$nl\}$nl$gdb_prompt $" {
- # TODO: this is okay, just gcc abi 2
- fail "ptype e_instance"
+ pass "ptype e_instance"
}
-re "type = $re_class${ws}$re_fields${ws}$re_all_methods$nl\}$nl$gdb_prompt $" {
pass "ptype e_instance"
}
-re "type = $XX_class${ws}$re_fields${ws}$re_methods${ws}$re_synth_gcc_23$nl\}$nl$gdb_prompt $" {
- # TODO: this is okay, just gcc abi 2
# TODO: this is a gcc bug.
# kfail "gdb/1498" "ptype e_instance"
- fail "ptype e_instance"
+ pass "ptype e_instance"
}
-re "type = $XX_class${ws}$re_fields${ws}$re_all_methods$nl\}$nl$gdb_prompt $" {
# TODO: this is a gcc bug.
@@ -177,8 +172,7 @@ gdb_test_multiple "print f_instance" "print value of f_instance" {
gdb_test_multiple "ptype f_instance" "ptype f_instance" {
-re "type = $re_class${ws}$re_fields${ws}$re_methods${ws}$re_synth_gcc_23$nl\}$nl$gdb_prompt $" {
- # TODO: this is okay, just gcc abi 2
- fail "ptype f_instance"
+ pass "ptype f_instance"
}
-re "type = $re_class${ws}$re_fields${ws}$re_all_methods$nl\}$nl$gdb_prompt $" {
pass "ptype f_instance"