blob: 884b3ed9dc25dd2d2a218240d71ae6ce1146a1d1 [file] [log] [blame]
Zhongxing Xu1c625f22010-05-06 03:38:27 +00001// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-inline-call -analyzer-store region -verify %s
Zhongxing Xu57d3b762010-03-04 09:04:52 +00002
3// Test when entering f1(), we set the right AnalysisContext to Environment.
4// 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}