aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendObjC
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-10-04 18:46:06 +0000
committerBill Wendling <isanbard@gmail.com>2007-10-04 18:46:06 +0000
commit14af7450c28d1fa2ea150d0cd2583835bc6590e5 (patch)
tree46e2558b4e59d3de43c28547cb8eac936cbc6287 /test/FrontendObjC
parent87b77b9079088cf5680eecc3712d3840c19d4290 (diff)
downloadexternal_llvm-14af7450c28d1fa2ea150d0cd2583835bc6590e5.zip
external_llvm-14af7450c28d1fa2ea150d0cd2583835bc6590e5.tar.gz
external_llvm-14af7450c28d1fa2ea150d0cd2583835bc6590e5.tar.bz2
Added testcase for creation of metadata with null pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendObjC')
-rw-r--r--test/FrontendObjC/2007-10-03-MetadataPointers.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FrontendObjC/2007-10-03-MetadataPointers.mm b/test/FrontendObjC/2007-10-03-MetadataPointers.mm
new file mode 100644
index 0000000..ca5ff85
--- /dev/null
+++ b/test/FrontendObjC/2007-10-03-MetadataPointers.mm
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -x objective-c++ -c %s -o /dev/null
+
+@class NSImage;
+void bork() {
+ NSImage *nsimage;
+ [nsimage release];
+}