aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2009-09-21 19:46:15 +0000
committerKeith Seitz <keiths@redhat.com>2009-09-21 19:46:15 +0000
commit11ef0d76ab7ca2b103955a98af4aa0eb7dbf74ab (patch)
treeea1f665853609270b71f8797d95af7f3cfd5cb9a /gdb
parent4385ad3c0987c92590d3c30bbb19da53574be01b (diff)
downloadfsf-binutils-gdb-11ef0d76ab7ca2b103955a98af4aa0eb7dbf74ab.zip
fsf-binutils-gdb-11ef0d76ab7ca2b103955a98af4aa0eb7dbf74ab.tar.gz
fsf-binutils-gdb-11ef0d76ab7ca2b103955a98af4aa0eb7dbf74ab.tar.bz2
* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
with invalid operator.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.cp/cplusfuncs.exp5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 72b1e1c..ac6fbc2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2009-09-21 Keith Seitz <keiths@redhat.com>
+ * gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
+ with invalid operator.
+
+2009-09-21 Keith Seitz <keiths@redhat.com>
+
* gdb.cp/classes.exp (do_tests): Add tests to print a constructor
and destructor using typedef name of class.
* gdb.cp/classes.cc (class Base1): Add a destructor.
diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp
index 5e08768..56702ed 100644
--- a/gdb/testsuite/gdb.cp/cplusfuncs.exp
+++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp
@@ -534,6 +534,7 @@ proc do_tests {} {
global srcdir
global binfile
global gdb_prompt
+ global dm_type_int_star
set prms_id 0
set bug_id 0
@@ -557,6 +558,10 @@ proc do_tests {} {
test_paddr_operator_functions
test_paddr_hairy_functions
test_lookup_operator_functions
+
+ # A regression test on errors involving operators
+ gdb_test "list foo::operator $dm_type_int_star" \
+ ".*the class foo does not have any method named operator $dm_type_int_star.*"
}
do_tests