Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / cpp / static_methods / TestCPPStaticMethods.py
blob1050a5ee9435c53a968d95003e712cea966ca220
1 """
2 Tests expressions that distinguish between static and non-static methods.
3 """
5 import lldb
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"""
14 self.build()
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")