diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-08-01 05:59:39 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-08-01 05:59:39 +0000 |
commit | eb01ba670e80e267bf28beb8a0888a0bcf87734a (patch) | |
tree | a2a3e23514d1136581751f6be8587f8a0c9f9e99 /clang/test | |
parent | b616260624910242b91298303c3f2281ca019186 (diff) | |
download | bcm5719-llvm-eb01ba670e80e267bf28beb8a0888a0bcf87734a.tar.gz bcm5719-llvm-eb01ba670e80e267bf28beb8a0888a0bcf87734a.zip |
Temporarily disable out-of-bounds checking. The current checking logic will not work quite right with the changes I'm about to commit.
llvm-svn: 77779
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Analysis/outofbound.c | 1 | ||||
-rw-r--r-- | clang/test/Analysis/rdar-6541136-region.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/clang/test/Analysis/outofbound.c b/clang/test/Analysis/outofbound.c index 527a311d2b7..568f14329e9 100644 --- a/clang/test/Analysis/outofbound.c +++ b/clang/test/Analysis/outofbound.c @@ -1,4 +1,5 @@ // RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s +// XFAIL char f1() { char* s = "abcd"; diff --git a/clang/test/Analysis/rdar-6541136-region.c b/clang/test/Analysis/rdar-6541136-region.c index 1e7a2d974bc..e2779e8d914 100644 --- a/clang/test/Analysis/rdar-6541136-region.c +++ b/clang/test/Analysis/rdar-6541136-region.c @@ -13,7 +13,10 @@ void foo( void ) struct load_wine *cmd = (void*) &wonky[1]; cmd = cmd; char *p = (void*) &wonky[1]; - *p = 1; + *p = 1; // no-warning kernel_tea_cheese_t *q = &wonky[1]; - kernel_tea_cheese_t r = *q; // expected-warning{{out-of-bound memory position}} + // 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}} } |