aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-06 03:57:59 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-06 03:57:59 +0000
commit4dc1566a80648a74a19409c425809fa6a1683bef (patch)
treed4f568590cb20cea67057b241e032b2aff60c2d9 /test
parenteafd1d60fdf4ad076aae64d148046251344ffb13 (diff)
Fix regression in RegionStore (from BasicStore) where static variables were not treated as being implicitly initialized to 0 (and instead were getting symbolicated).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/misc-ps.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/misc-ps.m b/test/Analysis/misc-ps.m
index 88cc128929..c1b3d9788b 100644
--- a/test/Analysis/misc-ps.m
+++ b/test/Analysis/misc-ps.m
@@ -901,3 +901,10 @@ int bar_rev95274() {
return 0;
}
+void rdar7582031_test_static_init_zero() {
+ static unsigned x;
+ if (x == 0)
+ return;
+ int *p = 0;
+ *p = 0xDEADBEEF;
+}