[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / test / Analysis / uninit-exhaustive-switch-bug.c
blobc45e9e60e820f665043bf6c96a5756964d866307
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
3 // rdar://problem/54359410
4 // expected-no-diagnostics
6 int rand(void);
8 void test(void) {
9 int offset = 0;
10 int value;
11 int test = rand();
12 switch (test & 0x1) {
13 case 0:
14 case 1:
15 value = 0;
16 break;
19 offset += value; // no-warning