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