Mercurial > hg > CbC > CbC_llvm
view clang/test/Analysis/double-ranges-bug.c @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 79ff65ed7e25 |
children | c4bab56944e8 |
line wrap: on
line source
// RUN: %clang_analyze_cc1 -verify %s -analyzer-checker=core // expected-no-diagnostics typedef unsigned long int A; extern int fill(A **values, int *nvalues); void foo() { A *values; int nvalues; fill(&values, &nvalues); int i = 1; double x, y; y = values[i - 1]; x = values[i]; if (x <= y) { } }