xref: /llvm-project/lldb/test/API/commands/expression/xvalue/TestXValuePrinting.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2from lldbsuite.test.decorators import *
3from lldbsuite.test.lldbtest import *
4from lldbsuite.test import lldbutil
5
6
7class ExprXValuePrintingTestCase(TestBase):
8    def test(self):
9        """Printing an xvalue should work."""
10        self.build()
11        lldbutil.run_to_source_breakpoint(
12            self, "// Break here", lldb.SBFileSpec("main.cpp")
13        )
14        self.expect_expr("foo().data", result_value="1234")
15