outofbound.c revision e3a46b08f879771b9445c2a3cb717bf843f48f07
1// RUN: clang -checker-simple -analyzer-store-region -verify %s
2
3char f1() {
4  char* s = "abcd";
5  return s[5]; // expected-warning{{Load or store into an out-of-bound memory position.}}
6}
7