aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/classes.exp
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2009-11-11 23:33:51 +0000
committerKeith Seitz <keiths@redhat.com>2009-11-11 23:33:51 +0000
commit40f0318e99b714619c029e788c8de3af1c286e14 (patch)
tree4dc6573e8846207b0ec7b7a0e4ce80c748df70cb /gdb/testsuite/gdb.cp/classes.exp
parenta8acdf460377d5b5fba6df998d1a0ac320226128 (diff)
downloadgdb-40f0318e99b714619c029e788c8de3af1c286e14.zip
gdb-40f0318e99b714619c029e788c8de3af1c286e14.tar.gz
gdb-40f0318e99b714619c029e788c8de3af1c286e14.tar.bz2
* gdb.cp/classes.cc (ByAnyOtherName): Add typedef and
use it instead of "Foo". * gdb.cp/classes.exp (do_tests): Add a test to access a method through a typedef'd class name.
Diffstat (limited to 'gdb/testsuite/gdb.cp/classes.exp')
-rw-r--r--gdb/testsuite/gdb.cp/classes.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp
index 87e993c..3a1ee9e 100644
--- a/gdb/testsuite/gdb.cp/classes.exp
+++ b/gdb/testsuite/gdb.cp/classes.exp
@@ -636,6 +636,8 @@ proc do_tests {} {
gdb_test "print base1::Base1" "<.*Base1.*>" "print ctor of typedef class"
gdb_test "print base1::~Base1" "<.*~Base1(\\(\\))?>" \
"print dtor of typedef class"
+
+ gdb_test "list ByAnyOtherName::times" ".*int Foo::times.*"
}
do_tests