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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp
index e3d1ec1df6c..70ad269d24a 100644
--- a/clang/test/CodeGenCXX/new.cpp
+++ b/clang/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);
+}
OpenPOWER on IntegriCloud