diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-02-16 09:31:36 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-02-16 09:31:36 +0000 |
commit | fd035e6496665b1f1197868e21cb0a4594e8db6e (patch) | |
tree | 53010172e19c77ea447bcd89e117cda052ab52e0 /test/Analysis/misc-ps-flat-store.c | |
parent | 2fce988e86bc01829142e4362d4eff1af0925147 (diff) | |
download | FreeBSD-src-fd035e6496665b1f1197868e21cb0a4594e8db6e.zip FreeBSD-src-fd035e6496665b1f1197868e21cb0a4594e8db6e.tar.gz |
Update clang to r96341.
Diffstat (limited to 'test/Analysis/misc-ps-flat-store.c')
-rw-r--r-- | test/Analysis/misc-ps-flat-store.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Analysis/misc-ps-flat-store.c b/test/Analysis/misc-ps-flat-store.c new file mode 100644 index 0000000..8cbcecf --- /dev/null +++ b/test/Analysis/misc-ps-flat-store.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store=flat -verify %s + +void f1() { + int x; + int *p; + x = 1; + p = 0; + if (x != 1) + *p = 1; // no-warning +} |