blob: 18ffbbe6d649637f34e94c994ead4cc7135401dd [file] [log] [blame]
Ted Kremenekcfec1db2008-12-13 19:27:01 +00001// XFAIL
Zhongxing Xu20f01782008-11-24 02:19:49 +00002// RUN: clang -checker-simple -analyzer-store-region -verify %s
3
4char f1() {
5 char* s = "abcd";
Zhongxing Xu4b89e032008-11-24 05:16:01 +00006 return s[5]; // expected-warning{{Load or store into an out-of-bound memory position.}}
Zhongxing Xu20f01782008-11-24 02:19:49 +00007}