[analyzer] Another dynamic_cast false positive/negative.

llvm-svn: 154543
diff --git a/clang/test/Analysis/dynamic-cast.cpp b/clang/test/Analysis/dynamic-cast.cpp
index 62481e3..8e63b2b 100644
--- a/clang/test/Analysis/dynamic-cast.cpp
+++ b/clang/test/Analysis/dynamic-cast.cpp
@@ -221,3 +221,10 @@
   return *res; // expected-warning{{Dereference of null pointer}}
 }
 
+// Does not work when we new an object.
+int testDynCastFail3() {
+  A *a = new A();
+  B *b = dynamic_cast<B*>(a);
+  return b->m;
+}
+