blob: 6e6e8f033b5357062fdece5b4411d7411571d173 [file] [log] [blame]
// RUN: clang -checker-simple -analyzer-store-region -verify %s
char f1() {
char* s = "abcd";
return s[5]; // expected-warning{{Load or store into an out-of-bound memory position.}}
}