From 96c012ff8b89dc0ae97db225ccee68e862caed59 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 31 May 2009 21:12:26 +0000 Subject: ...and aggregate POD types. llvm-svn: 72676 --- clang/test/CodeGenCXX/new.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/CodeGenCXX/new.cpp') 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); } -- cgit v1.2.3