diff options
Diffstat (limited to 'test/Analysis/basicstore_wine_crash.c')
-rw-r--r-- | test/Analysis/basicstore_wine_crash.c | 11 |
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 000000000000..cb5fac8d2919 --- /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; +} |