Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Analysis/missing-bind-temporary.cpp
Context not available. | |||||
void bar() { | void bar() { | ||||
global = 0; | global = 0; | ||||
foo(1); | foo(1); | ||||
// FIXME: Should be TRUE, i.e. we should call (and inline) two destructors. | // FIXME: Should be TRUE, i.e. we should call (and inline) two destructors. | ||||
clang_analyzer_eval(global == 2); // expected-warning{{UNKNOWN}} | clang_analyzer_eval(global == 2); // expected-warning{{UNKNOWN}} | ||||
} | } | ||||
Context not available. | |||||
void bar() { | void bar() { | ||||
global = 0; | global = 0; | ||||
foo(1); | foo(1); | ||||
// FIXME: Should be TRUE, i.e. we should call (and inline) two destructors. | // FIXME: Should be TRUE, i.e. we should call (and inline) two destructors. | ||||
clang_analyzer_eval(global == 2); // expected-warning{{UNKNOWN}} | clang_analyzer_eval(global == 2); // expected-warning{{UNKNOWN}} | ||||
} | } | ||||
Context not available. |