aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CodeGenCXX/new.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp
index e3d1ec1df6..70ad269d24 100644
--- a/test/CodeGenCXX/new.cpp
+++ b/test/CodeGenCXX/new.cpp
@@ -45,3 +45,8 @@ void t5() {
// RUN: grep "call void @_ZN2T2C1Eii" %t | count 1
T2 *t2 = new T2(10, 10);
}
+
+int *t6() {
+ // Null check.
+ return new (0) int(10);
+}