From 81ddb8aaf36ccd644e232f513c3f56d90e1de07d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Feb 2005 19:28:30 +0000 Subject: [PATCH] New testcase for PR529 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 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/C++Frontend/2005-02-27-PlacementArrayNewCrash.cpp diff --git a/test/C++Frontend/2005-02-27-PlacementArrayNewCrash.cpp b/test/C++Frontend/2005-02-27-PlacementArrayNewCrash.cpp new file mode 100644 index 00000000000..a8fc6685ac4 --- /dev/null +++ b/test/C++Frontend/2005-02-27-PlacementArrayNewCrash.cpp @@ -0,0 +1,8 @@ +// RUN: %llvmgxx -S %s -o - + +#include +typedef double Ty[4]; + +void foo(Ty *XX) { + new(XX) Ty(); +} -- 2.34.1