aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/new.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-22 19:25:33 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-22 19:25:33 +0000
commit09edb9c38cc7dc596d97d68ba6d23545c7ad3abd (patch)
tree02bf6aedd894ef0548a48035ab4f1d61aca94330 /test/CodeGenCXX/new.cpp
parente4fc0d97420e13d13c9664a3c27c17aa7c1e47b9 (diff)
Use EmitStoreOfScalar when copying the scalar to the space allocated by 'new'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/new.cpp')
-rw-r--r--test/CodeGenCXX/new.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp
index 3f191de23b..ddf1f9b3c9 100644
--- a/test/CodeGenCXX/new.cpp
+++ b/test/CodeGenCXX/new.cpp
@@ -72,3 +72,10 @@ void t8(int n) {
new U[10];
new U[n];
}
+
+void t9() {
+ bool b;
+
+ new bool(true);
+ new (&b) bool(true);
+}