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