analyzer-stats.c revision 4a374f9a58a5b350ec2e4123b20c9884ed1f5f15
1// RUN: %clang_cc1 -analyze -analyzer-checker=core,deadcode.DeadStores,debug.Stats -verify -Wno-unreachable-code -analyzer-opt-analyze-nested-blocks %s
2
3int foo();
4
5int test() { // expected-warning-re{{test -> Total CFGBlocks: [0-9]+ \| Unreachable CFGBlocks: 0 \| Exhausted Block: no \| Empty WorkList: yes}}
6  int a = 1;
7  a = 34 / 12;
8
9  if (foo())
10    return a;
11
12  a /= 4;
13  return a;
14}
15