summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/rdar-6541136-region.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/rdar-6541136-region.c')
-rw-r--r--clang/test/Analysis/rdar-6541136-region.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/rdar-6541136-region.c b/clang/test/Analysis/rdar-6541136-region.c
index e2779e8d914..a07308f96c4 100644
--- a/clang/test/Analysis/rdar-6541136-region.c
+++ b/clang/test/Analysis/rdar-6541136-region.c
@@ -13,10 +13,10 @@ void foo( void )
struct load_wine *cmd = (void*) &wonky[1];
cmd = cmd;
char *p = (void*) &wonky[1];
- *p = 1; // no-warning
+ //*p = 1; // this is also an out-of-bound access.
kernel_tea_cheese_t *q = &wonky[1];
// This test case tests both the RegionStore logic (doesn't crash) and
// the out-of-bounds checking. We don't expect the warning for now since
// out-of-bound checking is temporarily disabled.
- kernel_tea_cheese_t r = *q; // eventually-warning{{out-of-bound memory position}}
+ kernel_tea_cheese_t r = *q; // expected-warning{{Access out-of-bound array element (buffer overflow)}}
}
OpenPOWER on IntegriCloud