diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-05-31 21:12:26 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-05-31 21:12:26 +0000 |
| commit | 96c012ff8b89dc0ae97db225ccee68e862caed59 (patch) | |
| tree | 2c0a1d79bc0d10ddbb251134b7f88807684c7794 /clang/test/CodeGenCXX/new.cpp | |
| parent | 60d0c2c1c2eb81fe389a912f13762c8f18eb72d3 (diff) | |
| download | bcm5719-llvm-96c012ff8b89dc0ae97db225ccee68e862caed59.tar.gz bcm5719-llvm-96c012ff8b89dc0ae97db225ccee68e862caed59.zip | |
...and aggregate POD types.
llvm-svn: 72676
Diffstat (limited to 'clang/test/CodeGenCXX/new.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/new.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp index dde7bfe9ee5..bf959c95c85 100644 --- a/clang/test/CodeGenCXX/new.cpp +++ b/clang/test/CodeGenCXX/new.cpp @@ -11,8 +11,15 @@ void t2(int* a) { 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); } |

