diff options
author | David Carlton <carlton@bactrian.org> | 2004-03-12 17:46:27 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2004-03-12 17:46:27 +0000 |
commit | 0e02aa50226babd5179cf4af1b47c69b17929ef5 (patch) | |
tree | a964d484b15d21e17d4deb2c51f17607467ee568 /gdb/testsuite/gdb.cp/local.exp | |
parent | c20b71be64f3efa0c367897184ffb57636eb9a62 (diff) | |
download | gdb-0e02aa50226babd5179cf4af1b47c69b17929ef5.zip gdb-0e02aa50226babd5179cf4af1b47c69b17929ef5.tar.gz gdb-0e02aa50226babd5179cf4af1b47c69b17929ef5.tar.bz2 |
2004-03-12 David Carlton <carlton@kealia.com>
* gdb.cp/pr-1553.exp: New. Tests for PR c++/1553.
* gdb.cp/pr-1553.cc: Ditto.
* gdb.cp/local.exp (ptype NestedInnerLocal): Add comment, third
pass branch.
Diffstat (limited to 'gdb/testsuite/gdb.cp/local.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/local.exp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp index 5cd2ee9..6bae99f 100644 --- a/gdb/testsuite/gdb.cp/local.exp +++ b/gdb/testsuite/gdb.cp/local.exp @@ -263,10 +263,20 @@ gdb_expect { # # chastain 2002-04-08 +# NOTE (2004-02-24, carlton): This test really is invalid - +# 'NestedInnerLocal' shouldn't be visible, so only the third +# expression should count as a pass. I'm leaving in the earlier +# passes, however, given the current problematic state of our local +# class support, but once we fix PR gdb/482, we should delete this +# test. + send_gdb "ptype NestedInnerLocal\n" gdb_expect { -re "type = class NestedInnerLocal \{\[\r\n\t \]*public:\[\r\n\t \]*int nil;\[\r\n\t \]*int nil_foo\\(int\\);\[\r\n\t \]*\}.*$gdb_prompt $" { pass "ptype NestedInnerLocal" } -re "type = class NestedInnerLocal \{\[\r\n\t \]*public:\[\r\n\t \]*int nil;\[\r\n\t \]*NestedInnerLocal *& *operator *= *\\((main${sep}::|)InnerLocal::NestedInnerLocal const *&\\);\[\r\n\t \]*NestedInnerLocal\\((main${sep}::|)InnerLocal::NestedInnerLocal const *&\\);\[\r\n\t \]*NestedInnerLocal\\((void|)\\);\[\r\n\t \]*int nil_foo\\(int\\);\[\r\n\t \]*\}.*$gdb_prompt $" { pass "ptype NestedInnerLocal" } + -re "No symbol \"NestedInnerLocal\" in current context\.\r\n$gdb_prompt $" { + pass "ptype NestedInnerLocal" + } -re ".*$gdb_prompt $" { fail "ptype NestedInnerLocal" } timeout { fail "(timeout) ptype NestedInnerLocal" } } |