New testcase for PR529
authorChris Lattner <sabre@nondot.org>
Sun, 27 Feb 2005 19:28:30 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 Feb 2005 19:28:30 +0000 (19:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20356 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2005-02-27-PlacementArrayNewCrash.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2005-02-27-PlacementArrayNewCrash.cpp b/test/C++Frontend/2005-02-27-PlacementArrayNewCrash.cpp
new file mode 100644 (file)
index 0000000..a8fc668
--- /dev/null
@@ -0,0 +1,8 @@
+// RUN: %llvmgxx -S %s -o -
+
+#include <new>
+typedef double Ty[4];
+
+void foo(Ty *XX) {
+  new(XX) Ty();
+}