2012-03-09 07:16:35 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-ipa=inlining -analyzer-store region -verify %s
|
2010-03-04 17:04:52 +08:00
|
|
|
|
2011-10-24 09:32:45 +08:00
|
|
|
// Test when entering f1(), we set the right AnalysisDeclContext to Environment.
|
2010-03-04 17:04:52 +08:00
|
|
|
// Otherwise, block-level expr '1 && a' would not be block-level.
|
|
|
|
int a;
|
|
|
|
|
|
|
|
void f1() {
|
|
|
|
if (1 && a)
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
void f2() {
|
|
|
|
f1();
|
|
|
|
}
|