summaryrefslogtreecommitdiffstats
path: root/test/Analysis/basicstore_wine_crash.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/basicstore_wine_crash.c')
-rw-r--r--test/Analysis/basicstore_wine_crash.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Analysis/basicstore_wine_crash.c b/test/Analysis/basicstore_wine_crash.c
new file mode 100644
index 0000000..cb5fac8
--- /dev/null
+++ b/test/Analysis/basicstore_wine_crash.c
@@ -0,0 +1,11 @@
+// RUN: clang-cc -checker-cfref -analyze -analyzer-store=basic %s
+
+// Once xfail_regionstore_wine_crash.c passes, move this test case
+// into misc-ps.m.
+
+void foo() {
+ long x = 0;
+ char *y = (char *) &x;
+ if (!*y)
+ return;
+}
OpenPOWER on IntegriCloud