Matej =?utf-8?q?Košík?= <[email protected]>,
Matej =?utf-8?q?Košík?= <[email protected]>,
Matej =?utf-8?q?Košík?= <[email protected]>,
Matej =?utf-8?q?Košík?= <[email protected]>,
Matej =?utf-8?q?Košík?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -36,3 +36,17 @@ def test(self):
# Check the size of the chosen aliases of basic types.
self.assertEqual(self.target().FindFirstType("__int128_t").size, 16)
self.assertEqual(self.target().FindFirstType("__uint128_t").size, 16)
+
+ # "_BitInt(...)" and "unsigned _BitInt(...)" are GNU C compiler
extensions
+ # that are supported by LLVM C(++) compiler as well.
+ #
+ # We check that LLDB is able to map the names of these types
+ # (as reported by LLDB for variables of this type)
+ # to the corresponding SBType objects.
+ self.assertEqual(self.target().FindFirstType("_BitInt(65)").name,
"_BitInt(65)")
+ self.assertEqual(self.target().FindFirstType("_BitInt(65)").size, 16)
+ self.assertEqual(
+ self.target().FindFirstType("unsigned _BitInt(65)").name,
+ "unsigned _BitInt(65)",
+ )
+ self.assertEqual(self.target().FindFirstType("unsigned
_BitInt(65)").size, 16)
----------------
Michael137 wrote:
Can we add tests for:
```
unsigned _BitInt
unsigned _BitInt(65
unsigned _BitInt(0x41)
```
These should all fail
https://github.com/llvm/llvm-project/pull/165857
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits