blob: 5a1d193beb29a9fcaba5fd649d3ac0aa20f54b49 [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
2
Zhongxing Xu7b73b922010-04-05 13:16:29 +00003int 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}