summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/arc.m
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-07-13 18:26:47 +0000
committerJohn McCall <rjmccall@apple.com>2011-07-13 18:26:47 +0000
commitdffafded6c13a9b308433c85a1156501e65bb6e8 (patch)
treeba0bd82bc27a515bd87c1238d45917961593faee /clang/test/CodeGenObjC/arc.m
parent61a9f2af9e69a5e92afda86abd61341460628e6a (diff)
downloadbcm5719-llvm-dffafded6c13a9b308433c85a1156501e65bb6e8.tar.gz
bcm5719-llvm-dffafded6c13a9b308433c85a1156501e65bb6e8.zip
Don't crash if defining -dealloc in a category.
llvm-svn: 135054
Diffstat (limited to 'clang/test/CodeGenObjC/arc.m')
-rw-r--r--clang/test/CodeGenObjC/arc.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/arc.m b/clang/test/CodeGenObjC/arc.m
index 2431866ef0f..407b3eb7716 100644
--- a/clang/test/CodeGenObjC/arc.m
+++ b/clang/test/CodeGenObjC/arc.m
@@ -1542,3 +1542,13 @@ void test54(int first, ...) {
// CHECK: call void @objc_release
// CHECK: ret void
}
+
+// PR10228
+@interface Test55Base @end
+@interface Test55 : Test55Base @end
+@implementation Test55 (Category)
+- (void) dealloc {}
+@end
+// CHECK: define internal void @"\01-[Test55(Category) dealloc]"(
+// CHECK-NOT: ret
+// CHECK: call void bitcast (i8* ({{%.*}}*, i8*, ...)* @objc_msgSendSuper2 to void ({{%.*}}*, i8*)*)(
OpenPOWER on IntegriCloud