1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
15 lines
407 B
C
15 lines
407 B
C
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-ipa=inlining -analyzer-store region -verify %s
|
|
|
|
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;
|
|
}
|