ab2ddd07480aace5bc506a1b7558ed768dcb7500
[openbsd] /
1 import lldb
2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
5
6 class TestNamespaceLocalVarSameNameCppAndC(TestBase):
7
8     mydir = TestBase.compute_mydir(__file__)
9
10     @skipUnlessDarwin
11     @add_test_categories(["gmodules"])
12     def test_namespace_local_var_same_name_cpp_and_c(self):
13         self.build()
14
15         (self.target, self.process, _, bkpt) = lldbutil.run_to_source_breakpoint(self, '// break here',
16                 lldb.SBFileSpec("main.cpp", False))
17
18         self.expect("expr error",
19                 substrs=['(int) $0 = 1'])
20
21         lldbutil.continue_to_breakpoint(self.process, bkpt)
22
23         self.expect("expr error",
24                 substrs=['(int) $1 = 1'])