xref: /llvm-project/lldb/test/API/functionalities/inline-sourcefile/TestInlineSourceFiles.py (revision 096c530ab3ea5c96526451181117f30db17b4b1d)
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