blob: 968d82acd6e1c8816196fc4d3ab3ec9810e1ad3e [file] [log] [blame]
Anna Zaks66253352012-03-08 23:16:35 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-ipa=inlining -analyzer-store region -verify %s
Zhongxing Xu57d3b762010-03-04 09:04:52 +00002
Ted Kremenek1d26f482011-10-24 01:32:45 +00003// Test when entering f1(), we set the right AnalysisDeclContext to Environment.
Zhongxing Xu57d3b762010-03-04 09:04:52 +00004// Otherwise, block-level expr '1 && a' would not be block-level.
5int a;
6
7void f1() {
8 if (1 && a)
9 return;
10}
11
12void f2() {
13 f1();
14}