diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-02-17 21:10:52 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-02-17 21:10:52 +0000 |
commit | 1af88f12a3ad41c81e49beb2d8db4af4e61c3916 (patch) | |
tree | 28c05183c48d2c0d817eeff343516a98fd3be9eb /clang/test/Analysis/outofbound.c | |
parent | d406764d521e9d9ac17ec8b23fdc3a0f438c931c (diff) | |
download | bcm5719-llvm-1af88f12a3ad41c81e49beb2d8db4af4e61c3916.tar.gz bcm5719-llvm-1af88f12a3ad41c81e49beb2d8db4af4e61c3916.zip |
Enhance the array bounds checking to work for several other constructs,
especially C++ code, and generally expand the test coverage.
Logic adapted from a patch by Kaelyn Uhrain <rikka@google.com> and
another Googler.
llvm-svn: 125775
Diffstat (limited to 'clang/test/Analysis/outofbound.c')
-rw-r--r-- | clang/test/Analysis/outofbound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/outofbound.c b/clang/test/Analysis/outofbound.c index ed51dc6ac06..3b261bbb5ca 100644 --- a/clang/test/Analysis/outofbound.c +++ b/clang/test/Analysis/outofbound.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-experimental-checks -analyzer-check-objc-mem -analyzer-store=region -verify %s +// RUN: %clang_cc1 -Wno-array-bounds -analyze -analyzer-experimental-internal-checks -analyzer-experimental-checks -analyzer-check-objc-mem -analyzer-store=region -verify %s typedef __typeof(sizeof(int)) size_t; void *malloc(size_t); |