Mercurial > hg > CbC > CbC_llvm
view clang/test/Analysis/PR49642.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 -w -verify %s \ // RUN: -analyzer-checker=core \ // RUN: -analyzer-checker=apiModeling.StdCLibraryFunctions // expected-no-diagnostics typedef ssize_t; b; unsigned c; int write(int, const void *, unsigned long); a() { d(); while (c > 0) { b = write(0, d, c); if (b) c -= b; b < 1; } if (c && c) { // ^ no-crash } }