diff options
| -rw-r--r-- | clang/test/Analysis/outofbound.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Analysis/outofbound.c b/clang/test/Analysis/outofbound.c index b0c2db43862..e496425eb91 100644 --- a/clang/test/Analysis/outofbound.c +++ b/clang/test/Analysis/outofbound.c @@ -2,5 +2,6 @@  char f1() {    char* s = "abcd"; -  return s[6]; // expected-warning{{Load or store into an out-of-bound memory position.}} +  char c = s[4]; // no-warning +  return s[5] + c; // expected-warning{{Load or store into an out-of-bound memory position.}}  }  | 

