gdb: fix invalid arg coercion when calling static member functions
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / method-call-in-c.exp
index 411ba6790b12bfb073abb631046b406e0d13dd6f..5debc0e9a7a58280e0759b4ac716825b10349d8e 100644 (file)
@@ -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"
     }
 }
This page took 0.024377 seconds and 4 git commands to generate.