commit | 6d0ffad181215fc4ec0fca37c55eae82df6e0531 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun May 31 20:56:36 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun May 31 20:56:36 2009 +0000 |
tree | 9f415d7cb73b6ed6477b3c013f027455650fc7c6 | |
parent | d958389d52170be1c6dee93031d34b13809b786b [diff] [blame] |
Better support for scalar POD types in 'new' expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72674 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp index d07466d..a1786e8 100644 --- a/test/CodeGenCXX/new.cpp +++ b/test/CodeGenCXX/new.cpp
@@ -10,3 +10,7 @@ void t2(int* a) { int* b = new (a) int; } + +void t3() { + int *a = new int(10); +}