diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/method-call-in-c.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/method-call-in-c.exp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/method-call-in-c.exp b/gdb/testsuite/gdb.cp/method-call-in-c.exp index 411ba6790b1..5debc0e9a7a 100644 --- a/gdb/testsuite/gdb.cp/method-call-in-c.exp +++ b/gdb/testsuite/gdb.cp/method-call-in-c.exp @@ -43,5 +43,8 @@ foreach_with_prefix lang { c++ c } { set result [expr $result + 3] gdb_test "print foo += b" \ " = \\((?:struct )?foo_type &\\) @${hex}: \\\{var = ${result}\\\}" + + gdb_test "print foo.static_method (f, b)" " = 4" + gdb_test "print foo_type::static_method (f, b)" " = 4" } } |