blob: 05f56fbc58e1716569b4f23807b6e621e67db333 [file] [log] [blame]
Jordan Rose4d9fbd72012-08-21 21:44:07 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s
Zhongxing Xu5cb8d9d2010-03-04 09:04:52 +00002
Ted Kremenek81ce1c82011-10-24 01:32:45 +00003// Test when entering f1(), we set the right AnalysisDeclContext to Environment.
Zhongxing Xu5cb8d9d2010-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}