blob: dd2379f04381d21cff68742766f542bd5d879627 [file] [log] [blame]
Zhongxing Xu7b73b922010-04-05 13:16:29 +00001// RUN: %clang_cc1 -analyze -inline-call -analyzer-store region -analyze-function f -verify %s
2
3int g(int a) {
4 return a;
5}
6
7int f(int a) {
8 // Do not remove block-level expression bindings of caller when analyzing
9 // in the callee.
10 if (1 && g(a)) // The binding of '1 && g(a)' which is an UndefinedVal
11 // carries important information.
12 return 1;
13 return 0;
14}