[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / test / Analysis / svalbuilder-simplify-no-crash.c
blobb43ccbdbfd1002d7a27373497f632558f744f89b
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 void crashing(long a, _Bool b) {
10 (void)(a & 1 && 0);
11 b = a & 1;
12 (void)(b << 1); // expected-warning{{core.UndefinedBinaryOperatorResult}}