[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / test / Analysis / PR35418.cpp
blob658da72f1462d4d436e8cf3f9984faa07ef1f142
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
3 // expected-no-diagnostics
5 void halt() __attribute__((__noreturn__));
6 void assert(int b) {
7 if (!b)
8 halt();
11 void decode(unsigned width) {
12 assert(width > 0);
14 int base;
15 bool inited = false;
17 int i = 0;
19 if (i % width == 0) {
20 base = 512;
21 inited = true;
24 base += 1; // no-warning
26 if (base >> 10)
27 assert(false);