blob: a1aac1dec686366e008c094773ea93eb3a3a05e0 [file] [log] [blame]
Dominic Chen184c6242017-03-03 18:02:02 +00001// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
Andy Gibbsc6e68da2012-10-19 12:44:48 +00002// expected-no-diagnostics
Zhongxing Xu1a56a482010-05-06 03:38:27 +00003
Zhongxing Xufaa49052010-04-05 13:16:29 +00004int g(int a) {
5 return a;
6}
7
8int f(int a) {
9 // Do not remove block-level expression bindings of caller when analyzing
10 // in the callee.
11 if (1 && g(a)) // The binding of '1 && g(a)' which is an UndefinedVal
12 // carries important information.
13 return 1;
14 return 0;
15}