xref: /aosp_15_r20/external/clang/test/Analysis/analyzer-stats.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
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