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