[clang] [clang][test] Replace stdint include with uintptr_t typedef (PR #178125)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 26 22:57:50 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
This is what we usually do in tests.
---
Full diff: https://github.com/llvm/llvm-project/pull/178125.diff
1 Files Affected:
- (modified) clang/test/Sema/const-ptr-int-ptr-cast.c (+1-1)
``````````diff
diff --git a/clang/test/Sema/const-ptr-int-ptr-cast.c b/clang/test/Sema/const-ptr-int-ptr-cast.c
index 73b4a8a74fd09..40475ba9eeb29 100644
--- a/clang/test/Sema/const-ptr-int-ptr-cast.c
+++ b/clang/test/Sema/const-ptr-int-ptr-cast.c
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s
// expected-no-diagnostics
-#include <stdint.h>
+typedef unsigned __INTPTR_TYPE__ uintptr_t;
char *a = (void*)(uintptr_t)(void*)&a;
``````````
</details>
https://github.com/llvm/llvm-project/pull/178125
More information about the cfe-commits
mailing list