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
13 class TestImportBuiltinFileID(TestBase):
15 mydir = TestBase.compute_mydir(__file__)
19 @add_test_categories(["gmodules"])
20 def test_import_builtin_fileid(self):
23 lldbutil.run_to_source_breakpoint(self, '// break here',
24 lldb.SBFileSpec("main.m", False))
26 self.expect("expr int (*DBG_CGImageGetRenderingIntent)(void *) = ((int (*)(void *))CGImageGetRenderingIntent); DBG_CGImageGetRenderingIntent((void *)0x00000000000000);",