We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8936d30 commit 0d0e9b1Copy full SHA for 0d0e9b1
clang/test/Analysis/castsize.c
@@ -1,7 +1,8 @@
1
// RUN: %clang_analyze_cc1 -verify %s \
2
// RUN: -analyzer-checker=core,unix.Malloc,alpha.core.CastSize
3
4
-void *malloc(unsigned long);
+typedef typeof(sizeof(int)) size_t;
5
+void *malloc(size_t);
6
7
struct s1 {
8
int a;
0 commit comments