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