summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/new.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/new.cpp')
-rw-r--r--clang/test/CodeGenCXX/new.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp
index 71dbf1937e7..f3c14a78d36 100644
--- a/clang/test/CodeGenCXX/new.cpp
+++ b/clang/test/CodeGenCXX/new.cpp
@@ -90,3 +90,9 @@ A* t10() {
return new(1, 2, 3.45, 100) A;
}
+struct B { };
+void t11() {
+ // CHECK: call i8* @_Znwm
+ // CHECK: call void @llvm.memset.i64(
+ B* b = new B();
+}
OpenPOWER on IntegriCloud