we now may have identical states with different analysis context. Set the right AnalysisContext in state when entering and leaving a callee. With both of the above changes, we can pass the test case. llvm-svn: 97724
16 lines
312 B
C
16 lines
312 B
C
// RUN: %clang_cc1 -analyze -inline-call -analyzer-store region -analyze-function f2 -verify %s
|
|
|
|
|
|
// Test when entering f1(), we set the right AnalysisContext to Environment.
|
|
// Otherwise, block-level expr '1 && a' would not be block-level.
|
|
int a;
|
|
|
|
void f1() {
|
|
if (1 && a)
|
|
return;
|
|
}
|
|
|
|
void f2() {
|
|
f1();
|
|
}
|