2 Tests expressions that distinguish between static and non-static methods.
6 from lldbsuite
.test
.decorators
import *
7 from lldbsuite
.test
.lldbtest
import *
8 from lldbsuite
.test
import lldbutil
11 class CPPStaticMethodsTestCase(TestBase
):
12 def test_with_run_command(self
):
13 """Test that static methods are properly distinguished from regular methods"""
15 lldbutil
.run_to_source_breakpoint(
16 self
, "// Break here", lldb
.SBFileSpec("main.cpp")
19 self
.expect_expr("A::getStaticValue()", result_type
="int", result_value
="5")
20 self
.expect_expr("a.getMemberValue()", result_type
="int", result_value
="3")