Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
881eb9ce336c1fe29cab92c06a1900fccd0951d1
/
.
/
test
/
Analysis
/
outofbound.c
blob: 568f14329e9b8efc986466f5b5d0b1a299807b54 [
file
] [
log
] [
blame
]
// 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.}}
}