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