outofbound.c revision d427023c334fe03105d9359711a3df4d6f23b344
1// RUN: clang -analyze -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