bolt/deps/llvm-18.1.8/clang/test/Analysis/constant-folding-crash.cpp

12 lines
288 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
// expected-no-diagnostics
namespace bbi_77010 {
int crash_NE(int rhs, int lhs, int x) {
int band = lhs & rhs;
if (0 <= band) {}
if (rhs > 0) {}
return band != x; // no-crash D112621
}
} // namespace bbi_77010