xref: /llvm-project/lldb/test/API/functionalities/inline-sourcefile/TestInlineSourceFiles.py (revision 8b49ed8ba1ba5ecd35bd1efa4be5a0f56b0135b8)
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    # Fails on Windows for unknown reasons.
12    @skipIfWindows
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