* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message

with invalid operator.
This commit is contained in:
Keith Seitz 2009-09-21 19:46:15 +00:00
parent 4385ad3c09
commit 11ef0d76ab
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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