outofbound.c revision 4b89e034a7778669c4f0888d66afef4cc03fb064
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