File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
lldb/test/API/python_api/sbtype_basic_type Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,17 @@ def test(self):
3636 # Check the size of the chosen aliases of basic types.
3737 self .assertEqual (self .target ().FindFirstType ("__int128_t" ).size , 16 )
3838 self .assertEqual (self .target ().FindFirstType ("__uint128_t" ).size , 16 )
39+
40+ # "_BitInt(...)" and "unsigned _BitInt(...)" are GNU C compiler extensions
41+ # that are supported by LLVM C(++) compiler as well.
42+ #
43+ # We check that LLDB is able to map the names of these types
44+ # (as reported by LLDB for variables of this type)
45+ # to the corresponding SBType objects.
46+ self .assertEqual (self .target ().FindFirstType ("_BitInt(65)" ).name , "_BitInt(65)" )
47+ self .assertEqual (self .target ().FindFirstType ("_BitInt(65)" ).size , 16 )
48+ self .assertEqual (
49+ self .target ().FindFirstType ("unsigned _BitInt(65)" ).name ,
50+ "unsigned _BitInt(65)" ,
51+ )
52+ self .assertEqual (self .target ().FindFirstType ("unsigned _BitInt(65)" ).size , 16 )
You can’t perform that action at this time.
0 commit comments