aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/constant-folding-crash.cpp
blob: 156bfa5dda6a6700485b1e56d4943d245b755980 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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