blob: 6e6e8f033b5357062fdece5b4411d7411571d173 [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";
Zhongxing Xu4b89e032008-11-24 05:16:01 +00005 return s[5]; // expected-warning{{Load or store into an out-of-bound memory position.}}
Zhongxing Xu20f01782008-11-24 02:19:49 +00006}