xref: /minix3/external/bsd/llvm/dist/clang/test/Analysis/analyzer-stats.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,deadcode.DeadStores,debug.Stats -verify -Wno-unreachable-code -analyzer-opt-analyze-nested-blocks %s
2 
3 int foo();
4 
test()5 int 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