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-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
Analysis
/
novoidtypecrash.c
blob
b19990a2791b0c792637b131f6ade2d0483c0df6
1
// RUN: %clang_analyze_cc1 -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
}