forked from OSchip/llvm-project
14 lines
264 B
C
14 lines
264 B
C
|
// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify %s
|
||
|
// XFAIL: *
|
||
|
|
||
|
void clang_analyzer_eval(int);
|
||
|
|
||
|
extern const int extInt;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
clang_analyzer_eval(extInt == 2); // expected-warning{{TRUE}}
|
||
|
}
|
||
|
|
||
|
extern const int extInt = 2;
|