1import lldb
2from lldbsuite.test.decorators import *
3from lldbsuite.test.lldbtest import *
4from lldbsuite.test import lldbutil
5
6class ExprXValuePrintingTestCase(TestBase):
7
8    @expectedFailureAll(oslist=["windows"], archs=["i[3-6]86", "x86_64"], bugnumber="llvm.org/pr21765")
9    def test(self):
10        """Printing an xvalue should work."""
11        self.build()
12        lldbutil.run_to_source_breakpoint(self, '// Break here', lldb.SBFileSpec("main.cpp"))
13        self.expect_expr("foo().data", result_value="1234")
14