commit | f11085398dc27c0010663c711d4a10113e41d70f | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Mon Jun 01 00:05:16 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Mon Jun 01 00:05:16 2009 +0000 |
tree | 052f9782b781119caa5840ea97999cfab161c134 | |
parent | d3fd6bad1249d3f34d71b73e2333fab0db51cce4 [diff] [blame] |
Check for null correctly for new expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72678 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp index e3d1ec1..70ad269 100644 --- a/test/CodeGenCXX/new.cpp +++ b/test/CodeGenCXX/new.cpp
@@ -45,3 +45,8 @@ // RUN: grep "call void @_ZN2T2C1Eii" %t | count 1 T2 *t2 = new T2(10, 10); } + +int *t6() { + // Null check. + return new (0) int(10); +}