Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / svalbuilder-simplify-no-crash.c
blobb3166413ecace87e3e405f06601ceb97be81efa0
1 // RUN: %clang_analyze_cc1 %s \
2 // RUN: -analyzer-checker=core \
3 // RUN: -analyzer-checker=debug.ExprInspection \
4 // RUN: -verify
6 // Here, we test that svalbuilder simplification does not produce any
7 // assertion failure.
9 // expected-no-diagnostics
11 void crashing(long a, _Bool b) {
12 (void)(a & 1 && 0);
13 b = a & 1;
14 (void)(b << 1);