aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/templates.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/templates.exp')
-rw-r--r--gdb/testsuite/gdb.cp/templates.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp
index 541bdcb..487186a 100644
--- a/gdb/testsuite/gdb.cp/templates.exp
+++ b/gdb/testsuite/gdb.cp/templates.exp
@@ -195,6 +195,14 @@ proc test_template_calls {} {
}
}
+proc test_template_typedef {} {
+
+ gdb_test "print intBazOne::baz" ".*baz\\(int, int\\)>" \
+ "print method of template typedef"
+
+ gdb_test "print intBazOne::~Baz" ".*~Baz(\\(\\))?>" \
+ "print destructor of template typedef"
+}
proc do_tests {} {
global prms_id
@@ -223,6 +231,7 @@ proc do_tests {} {
test_ptype_of_templates
test_template_breakpoints
+ test_template_typedef
if [ runto_main] {
test_template_calls