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
commit6c6a9c7fbd6528c6396c87c55ddce4f2692a4422 (patch)
tree46e2558b4e59d3de43c28547cb8eac936cbc6287 /test/FrontendObjC
parentae259998591fea618d01c05e44263ac2f66d1707 (diff)
downloadexternal_llvm-6c6a9c7fbd6528c6396c87c55ddce4f2692a4422.zip
external_llvm-6c6a9c7fbd6528c6396c87c55ddce4f2692a4422.tar.gz
external_llvm-6c6a9c7fbd6528c6396c87c55ddce4f2692a4422.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];
+}