blob: 1dcebbe64d6880de563c5342a7b1f1f75a769a8f [file] [log] [blame]
Jordan Rose4d9fbd72012-08-21 21:44:07 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s
Zhongxing Xu1a56a482010-05-06 03:38:27 +00002
Zhongxing Xufaa49052010-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}