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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
Analysis
/
novoidtypecrash.c
blob
197516a25961875b9fcce16e1b099d30a192f399
1
// RUN: %clang_analyze_cc1 -std=c89 -Wno-int-conversion -analyzer-checker=core %s
2
x
;
3
y
(
void
**
z
) {
// no-crash
4
*
z
=
x
;
5
int
*
w
;
6
y
(&
w
);
7
*
w
;
8
}
9
10
a
;
11
b
(*
c
) {}
12
e
(*
c
) {
13
void
*
d
=
f
();
14
b
(
d
);
15
*
c
=
d
;
16
}
17
void
*
g
() {
18
e
(&
a
);
19
return
a
;
20
}
21
j
() {
22
int
h
;
23
char
i
=
g
();
24
if
(
i
)
25
for
(;
h
;)
26
;
27
}