2017-10-14 04:54:56 +08:00
|
|
|
// RUN: %clang_cc1 -triple=i386-apple-darwin10 -analyze -analyzer-checker=debug.ExprInspection -verify %s
|
|
|
|
void clang_analyzer_eval(int);
|
|
|
|
|
|
|
|
// pr28449: Used to crash.
|
|
|
|
void foo(void) {
|
|
|
|
static const unsigned short array[] = (const unsigned short[]){0x0F00};
|
2019-02-12 06:54:27 +08:00
|
|
|
clang_analyzer_eval(array[0] == 0x0F00); // expected-warning{{TRUE}}
|
2017-10-14 04:54:56 +08:00
|
|
|
}
|