mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
with invalid operator.
This commit is contained in:
parent
4385ad3c09
commit
11ef0d76ab
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user