2017-03-04 02:02:02 +08:00
|
|
|
// RUN: %clang_analyze_cc1 -analyzer-checker=debug.Stats -verify -Wno-unreachable-code %s
|
2015-11-14 08:36:50 +08:00
|
|
|
|
|
|
|
struct S {
|
|
|
|
~S();
|
|
|
|
};
|
|
|
|
|
|
|
|
// the return at the end of an CompoundStmt does not lead to an unreachable block containing the dtors
|
|
|
|
void test() { // expected-warning-re{{test -> Total CFGBlocks: {{[0-9]+}} | Unreachable CFGBlocks: 0 | Exhausted Block: no | Empty WorkList: yes}}
|
|
|
|
S s;
|
|
|
|
return;
|
|
|
|
}
|