blob: c428aad5ec4b80d0c9095de57eff28758c517199 [file] [log] [blame]
Argyrios Kyrtzidisc4d2c902011-02-28 19:49:42 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-inline-call -analyzer-store region -verify %s
Zhongxing Xu1c625f22010-05-06 03:38:27 +00002
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}