[Lldb-commits] [lldb] [lldb] Add GetPointerDiffType to TypeSystemClang (PR #185314)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 02:58:47 PDT 2026
================
@@ -360,6 +362,17 @@ TEST_F(TestTypeSystemClang, TestBuiltinTypeForEmptyTriple) {
TypeSystemClang::CompleteTagDeclarationDefinition(record_type);
}
+TEST_F(TestTypeSystemClang, TestGetPointerDiffType) {
+ CompilerType ptrdiff_t = m_ast->GetPointerDiffType(/*is_signed=*/true);
+ EXPECT_EQ(ptrdiff_t.GetDisplayTypeName(), "__ptrdiff_t");
----------------
Michael137 wrote:
Is this missing a:
```
EXPECT_TRUE(ptrdiff_t.IsSigned());
```
?
https://github.com/llvm/llvm-project/pull/185314
More information about the lldb-commits
mailing list