bolt/deps/llvm-18.1.8/clang/test/Analysis/symbol-simplification-symplify-results-in-dead-symbol.cpp
2025-02-14 19:21:04 +01:00

11 lines
236 B
C++

// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
// expected-no-diagnostics
#define assert(cond) if (!(cond)) return
unsigned a, b;
void f(unsigned c) {
assert(c == b);
assert((c | a) != a);
assert(a); // no-crash
}