blob: e0893b3f4e6290f79583d29927f05bb1a90421a7 [file] [log] [blame]
Matthias Gehre09a134e2015-11-14 00:36:50 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=debug.Stats -verify -Wno-unreachable-code %s
2
3struct S {
4 ~S();
5};
6
7// the return at the end of an CompoundStmt does not lead to an unreachable block containing the dtors
8void test() { // expected-warning-re{{test -> Total CFGBlocks: {{[0-9]+}} | Unreachable CFGBlocks: 0 | Exhausted Block: no | Empty WorkList: yes}}
9 S s;
10 return;
11}