You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
264 B
14 lines
264 B
4 months ago
|
// 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;
|