[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / commands / expression / import_builtin_fileid / TestImportBuiltinFileID.py
blobeaed64b6df0040e524311da25abd07e878415496
1 """
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
4 buffer over correctly.
5 """
8 import lldb
9 from lldbsuite.test.decorators import *
10 from lldbsuite.test.lldbtest import *
11 from lldbsuite.test import lldbutil
14 class TestImportBuiltinFileID(TestBase):
15 @skipIfDarwinEmbedded
16 @add_test_categories(["gmodules", "objc"])
17 def test_import_builtin_fileid(self):
18 self.build()
20 lldbutil.run_to_source_breakpoint(
21 self, "// break here", lldb.SBFileSpec("main.m", False)
24 self.expect(
25 "expr int (*DBG_CGImageGetRenderingIntent)(void *) = ((int (*)(void *))CGImageGetRenderingIntent); DBG_CGImageGetRenderingIntent((void *)0x00000000000000);",
26 substrs=["$0 = 0"],