repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (#113470)
[llvm-project.git]
/
clang
/
test
/
Analysis
/
malloc-protoype.c
blob
5f6d9fcb1c82edf8623810ae56ece19ecdd17ce8
1
// RUN: %clang_analyze_cc1 -w -analyzer-checker=core,unix.Malloc -verify %s
2
// expected-no-diagnostics
3
4
// Test that strange prototypes doesn't crash the analyzer
5
6
void
malloc
(
int
i
);
7
void
valloc
(
int
i
);
8
9
void
test1
(
void
)
10
{
11
malloc
(
1
);
12
}
13
14
void
test2
(
void
)
15
{
16
valloc
(
1
);
17
}