[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:59:06 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:
And a check for bytesize as you do below?
https://github.com/llvm/llvm-project/pull/185314
More information about the lldb-commits
mailing list