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
[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git]
/
clang
/
test
/
Analysis
/
uninit-exhaustive-switch-bug.c
blob
c45e9e60e820f665043bf6c96a5756964d866307
1
// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
2
3
// rdar://problem/54359410
4
// expected-no-diagnostics
5
6
int
rand
(
void
);
7
8
void
test
(
void
) {
9
int
offset
=
0
;
10
int
value
;
11
int
test
=
rand
();
12
switch
(
test
&
0x1
) {
13
case
0
:
14
case
1
:
15
value
=
0
;
16
break
;
17
}
18
19
offset
+=
value
;
// no-warning
20
}