blob: 17608ff1687294d2232f0a05394b83d82b243f70 [file] [log] [blame]
Zhongxing Xu20f01782008-11-24 02:19:49 +00001// 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}