[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Analysis / double-ranges-bug.c
bloba73d2ff949eda995db21595823af28b360867649
1 // RUN: %clang_analyze_cc1 -verify %s -analyzer-checker=core
3 // expected-no-diagnostics
5 typedef unsigned long int A;
7 extern int fill(A **values, int *nvalues);
9 void foo(void) {
10 A *values;
11 int nvalues;
12 fill(&values, &nvalues);
14 int i = 1;
15 double x, y;
17 y = values[i - 1];
18 x = values[i];
20 if (x <= y) {