blob: 527a311d2b7dd9c8680dc12a619908fea0a0af99 [file] [log] [blame]
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
char f1() {
char* s = "abcd";
char c = s[4]; // no-warning
return s[5] + c; // expected-warning{{Load or store into an out-of-bound memory position.}}
}