]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
authorKeith Seitz <keiths@redhat.com>
Mon, 21 Sep 2009 19:46:15 +0000 (19:46 +0000)
committerKeith Seitz <keiths@redhat.com>
Mon, 21 Sep 2009 19:46:15 +0000 (19:46 +0000)
with invalid operator.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/cplusfuncs.exp

index 72b1e1ca1783972c95123901cf896deed199847a..ac6fbc296c50e40bbbd546e5bbfcb92307ae370a 100644 (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
index 5e087680b7ad806bd513c923b2a1d3f46085bce3..56702edbac1058a7cd985fcd384ea0ce50a95cb0 100644 (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