blob: 71a379a02c75510955dd2c79864160a383b04e15 [file] [log] [blame]
Jordan Roseee049592012-08-21 21:44:07 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Zhongxing Xu1c625f22010-05-06 03:38:27 +00003
Zhongxing Xu7b73b922010-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}