You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
384 B
12 lines
384 B
4 months ago
|
// RUN: %clang_cc1 -analyze -analyzer-checker=debug.Stats -verify -Wno-unreachable-code %s
|
||
|
|
||
|
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;
|
||
|
}
|