f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
15 lines
388 B
C
15 lines
388 B
C
// RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
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;
|
|
}
|