diff options
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 +} |