commit | 627a3e573f1d9f0429d62c7ceb742a21cdabfce0 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun May 31 21:12:26 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun May 31 21:12:26 2009 +0000 |
tree | 9c79b99952f77fe7e8d4c213d46a558069a9c27b | |
parent | 3923e95280210ef877153f0c3dbab12d6ed2ad43 [diff] |
...and aggregate POD types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72676 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp index dde7bfe..bf959c9 100644 --- a/test/CodeGenCXX/new.cpp +++ b/test/CodeGenCXX/new.cpp
@@ -11,8 +11,15 @@ int* b = new (a) int; } +struct S { + int a; +}; + void t3() { int *a = new int(10); _Complex int* b = new _Complex int(10i); + S s; + s.a = 10; + S *sp = new S(s); }