blob: 3661263b6bae3653235fae2b0d586feb5025104a [file] [log] [blame]
Zhongxing Xu57d3b762010-03-04 09:04:52 +00001// RUN: %clang_cc1 -analyze -inline-call -analyzer-store region -analyze-function f2 -verify %s
2
3
4// Test when entering f1(), we set the right AnalysisContext to Environment.
5// Otherwise, block-level expr '1 && a' would not be block-level.
6int a;
7
8void f1() {
9 if (1 && a)
10 return;
11}
12
13void f2() {
14 f1();
15}