blob: 9eeaade793c2721f6bc3e68acf4b068a07e5ce74 [file] [log] [blame]
Ted Kremenekade31952011-03-12 06:14:28 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core,deadcode.DeadStores,debug.Stats -verify -Wno-unreachable-code -analyzer-opt-analyze-nested-blocks %s
Tom Care52d861c2010-09-10 00:44:44 +00002
3int foo();
4
5int test() { // expected-warning{{Total CFGBlocks}}
6 int a = 1;
7 a = 34 / 12;
8
9 if (foo())
10 return a;
11
12 a /= 4;
13 return a;
14}