summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/new.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-05-03 01:20:20 +0000
committerAnders Carlsson <andersca@mac.com>2010-05-03 01:20:20 +0000
commit16e94af67cd3f184884e83e600f11336d8c87ab3 (patch)
treed813bf3b743e9caf59b684a032694e7af5a4bad9 /clang/test/CodeGenCXX/new.cpp
parent8bdbb5be19caf5985d8c9407885aea0c14ea2c6e (diff)
downloadbcm5719-llvm-16e94af67cd3f184884e83e600f11336d8c87ab3.tar.gz
bcm5719-llvm-16e94af67cd3f184884e83e600f11336d8c87ab3.zip
Don't copy or initialize empty classes. Fixes PR7012.
llvm-svn: 102891
Diffstat (limited to 'clang/test/CodeGenCXX/new.cpp')
-rw-r--r--clang/test/CodeGenCXX/new.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp
index ca7c52f2cc0..cc6288575bb 100644
--- a/clang/test/CodeGenCXX/new.cpp
+++ b/clang/test/CodeGenCXX/new.cpp
@@ -90,7 +90,7 @@ A* t10() {
return new(1, 2, 3.45, 100) A;
}
-struct B { };
+struct B { int a; };
void t11() {
// CHECK: call noalias i8* @_Znwm
// CHECK: call void @llvm.memset.p0i8.i64(
OpenPOWER on IntegriCloud