2 They may be cases where an expression will import SourceLocation and if the
3 SourceLocation ends up with a FileID that is a built-in we need to copy that
9 from lldbsuite
.test
.decorators
import *
10 from lldbsuite
.test
.lldbtest
import *
11 from lldbsuite
.test
import lldbutil
14 class TestImportBuiltinFileID(TestBase
):
16 @add_test_categories(["gmodules", "objc"])
17 def test_import_builtin_fileid(self
):
20 lldbutil
.run_to_source_breakpoint(
21 self
, "// break here", lldb
.SBFileSpec("main.m", False)
25 "expr int (*DBG_CGImageGetRenderingIntent)(void *) = ((int (*)(void *))CGImageGetRenderingIntent); DBG_CGImageGetRenderingIntent((void *)0x00000000000000);",