Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / objc / modules-objc-property / TestModulesObjCProperty.py
blob3be064ae7d5f8ccdf071f1e1239756e770ee541d
1 import lldb
2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
7 class TestCase(TestBase):
8 @no_debug_info_test
9 def test_conflicting_properties(self):
10 """Tests receiving two properties with the same name from modules."""
11 self.build()
12 lldbutil.run_to_source_breakpoint(
13 self, "// Set breakpoint here.", lldb.SBFileSpec("main.m")
16 self.runCmd(
17 'settings set target.clang-module-search-paths "'
18 + self.getSourceDir()
19 + '"'
22 self.runCmd("expr @import myModule")
23 self.expect_expr("m.propConflict", result_value="5")
24 self.expect_expr("MyClass.propConflict", result_value="6")