bolt/deps/llvm-18.1.8/clang/test/Analysis/PR50268.c

13 lines
267 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_analyze_cc1 -w -analyzer-checker=core -verify %s \
// RUN: -analyzer-config eagerly-assume=true
// expected-no-diagnostics
int test(unsigned long a, unsigned long c, int b) {
c -= a;
if (0 >= b) {}
c == b;
return c ? 0 : 2; // no-crash
}