aboutsummaryrefslogtreecommitdiff
path: root/test/ARCMT
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-07-30 20:52:48 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-07-30 20:52:48 +0000
commit1b0a13e91088f6818016464ffb23616ced820cbc (patch)
tree0dc3f1557e2c967153f56139d7fd80c5aad70973 /test/ARCMT
parent2d18419a7c8f9a2975d4ed74a202de6467308ad1 (diff)
objective-c arc: ARC IRGen correctly assumes result
type of generated call to super dealloc is 'void' and asserts if user's dealloc is not of 'void type. This rule must be enforced in clang front-end (with a fixit) if this is not the case, instead of asserting in CodeGen. // rdar://11987838 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT')
-rw-r--r--test/ARCMT/releases-driver.m3
-rw-r--r--test/ARCMT/releases-driver.m.result3
-rw-r--r--test/ARCMT/releases.m3
-rw-r--r--test/ARCMT/releases.m.result3
4 files changed, 2 insertions, 10 deletions
diff --git a/test/ARCMT/releases-driver.m b/test/ARCMT/releases-driver.m
index b75432ac23..7b1d2fb8e5 100644
--- a/test/ARCMT/releases-driver.m
+++ b/test/ARCMT/releases-driver.m
@@ -53,9 +53,8 @@ void func(Foo *p) {
@end
@implementation Baz
-- dealloc {
+- (void) dealloc {
[_foo release];
- return 0;
}
@end
diff --git a/test/ARCMT/releases-driver.m.result b/test/ARCMT/releases-driver.m.result
index 70c0aecaf4..4c864bd2a8 100644
--- a/test/ARCMT/releases-driver.m.result
+++ b/test/ARCMT/releases-driver.m.result
@@ -49,9 +49,6 @@ void func(Foo *p) {
@end
@implementation Baz
-- dealloc {
- return 0;
-}
@end
#define RELEASE_MACRO(x) [x release]
diff --git a/test/ARCMT/releases.m b/test/ARCMT/releases.m
index 867fab9cec..55008959ef 100644
--- a/test/ARCMT/releases.m
+++ b/test/ARCMT/releases.m
@@ -58,9 +58,8 @@ void func(Foo *p) {
@end
@implementation Baz
-- dealloc {
+- (void) dealloc {
[_foo release];
- return 0;
}
@end
diff --git a/test/ARCMT/releases.m.result b/test/ARCMT/releases.m.result
index 556610ab2a..473750e4e8 100644
--- a/test/ARCMT/releases.m.result
+++ b/test/ARCMT/releases.m.result
@@ -54,9 +54,6 @@ void func(Foo *p) {
@end
@implementation Baz
-- dealloc {
- return 0;
-}
@end
void block_test(Foo *p) {