blob: 63073b7e40b3fcee2c3df7bba9d8dbfc98678771 [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
Jordan Rose4a374f92013-03-14 17:18:30 +00005int test() { // expected-warning-re{{test -> Total CFGBlocks: [0-9]+ \| Unreachable CFGBlocks: 0 \| Exhausted Block: no \| Empty WorkList: yes}}
Tom Care52d861c2010-09-10 00:44:44 +00006 int a = 1;
7 a = 34 / 12;
8
9 if (foo())
10 return a;
11
12 a /= 4;
13 return a;
14}