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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
Analysis
/
double-ranges-bug.c
blob
a73d2ff949eda995db21595823af28b360867649
1
// RUN: %clang_analyze_cc1 -verify %s -analyzer-checker=core
2
3
// expected-no-diagnostics
4
5
typedef
unsigned long int
A
;
6
7
extern
int
fill
(
A
**
values
,
int
*
nvalues
);
8
9
void
foo
(
void
) {
10
A
*
values
;
11
int
nvalues
;
12
fill
(&
values
, &
nvalues
);
13
14
int
i
=
1
;
15
double
x
,
y
;
16
17
y
=
values
[
i
-
1
];
18
x
=
values
[
i
];
19
20
if
(
x
<=
y
) {
21
}
22
}