Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / sbvalue_synthetic / TestSBValueSynthetic.py
blob2fd1e0ce9c6a3d77ab3b114202d36bc1290a04fc
1 import lldb
2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
7 class TestSBValueSynthetic(TestBase):
8 NO_DEBUG_INFO_TESTCASE = True
10 def test_str(self):
11 self.build()
12 lldbutil.run_to_source_breakpoint(
13 self, "break here", lldb.SBFileSpec("main.cpp")
15 self.runCmd("command script import formatter.py")
16 self.runCmd(
17 "type synthetic add --python-class formatter.FooSyntheticProvider Foo"
20 formatted = self.frame().FindVariable("foo")
21 has_formatted = self.frame().FindVariable("has_foo")
22 self.expect(str(formatted), exe=False, substrs=["synth_child"])
23 self.expect(str(has_formatted), exe=False, substrs=["synth_child"])