xref: /llvm-project/lldb/test/API/functionalities/inline-sourcefile/TestInlineSourceFiles.py (revision c041fa1093c3ad7be040fb362a10ca3900c698a4)
1import lldb
2from lldbsuite.test.decorators import *
3from lldbsuite.test.lldbtest import *
4from lldbsuite.test import lldbplatform
5from lldbsuite.test import lldbutil
6
7
8class InlineSourceFilesTestCase(TestBase):
9    @skipIf(compiler="gcc")
10    @skipIf(compiler="clang", compiler_version=["<", "18.0"])
11    # dsymutil doesn't yet copy the sources
12    @expectedFailureDarwin(debug_info=["dsym"])
13    def test(self):
14        """Test DWARF inline source files."""
15        self.build()
16        lldbutil.run_to_name_breakpoint(self, 'f')
17        self.expect("list f", substrs=["This is inline source code"])
18