2012-08-22 05:44:07 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2010-05-06 11:38:27 +08:00
|
|
|
|
2010-04-05 21:16:29 +08:00
|
|
|
int g(int a) {
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
|
|
|
|
int f(int a) {
|
|
|
|
// Do not remove block-level expression bindings of caller when analyzing
|
|
|
|
// in the callee.
|
|
|
|
if (1 && g(a)) // The binding of '1 && g(a)' which is an UndefinedVal
|
|
|
|
// carries important information.
|
|
|
|
return 1;
|
|
|
|
return 0;
|
|
|
|
}
|