Skip to content

Commit f9750d0

Browse files
author
Matej Košík
committed
[lldb] add more tests
1 parent ea03447 commit f9750d0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lldb/test/API/python_api/sbtype_basic_type/TestSBTypeBasicType.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)