[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / test / Analysis / uninit-bug-first-iteration-init.c
blob3b573ac2805344379e6664a3545095b27e51f2dd
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
3 // rdar://problem/44978988
4 // expected-no-diagnostics
6 int foo(void);
8 int gTotal;
10 double bar(int start, int end) {
11 int i, cnt, processed, size;
12 double result, inc;
14 result = 0;
15 processed = start;
16 size = gTotal * 2;
17 cnt = (end - start + 1) * size;
19 for (i = 0; i < cnt; i += 2) {
20 if ((i % size) == 0) {
21 inc = foo();
22 processed++;
24 result += inc * inc; // no-warning
26 return result;