summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/new.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-31 20:21:44 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-31 20:21:44 +0000
commited4e367f8e27d2c700efdaff9412f2bf83ddba00 (patch)
treef61f45918df3dba0198590afcccea7e88f6b0983 /test/CodeGenCXX/new.cpp
parent8c49911e6e52f490dcef7eb181f29cc95be8ba36 (diff)
downloadclang-ed4e367f8e27d2c700efdaff9412f2bf83ddba00.tar.gz
clang-ed4e367f8e27d2c700efdaff9412f2bf83ddba00.tar.bz2
clang-ed4e367f8e27d2c700efdaff9412f2bf83ddba00.tar.xz
Very basic irgen support for new expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/new.cpp')
-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
new file mode 100644
index 0000000000..fddda2b5b5
--- /dev/null
+++ b/test/CodeGenCXX/new.cpp
@@ -0,0 +1,5 @@
+// RUN: clang-cc %s -emit-llvm -o %t
+
+void t1() {
+ int* a = new int;
+}