summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/outofbound.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/outofbound.c')
-rw-r--r--clang/test/Analysis/outofbound.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Analysis/outofbound.c b/clang/test/Analysis/outofbound.c
index e676ea3b388..102ab59874c 100644
--- a/clang/test/Analysis/outofbound.c
+++ b/clang/test/Analysis/outofbound.c
@@ -1,8 +1,7 @@
// 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.}}
+ return s[5] + c; // expected-warning{{Access out-of-bound array element (buffer overflow)}}
}
OpenPOWER on IntegriCloud