blob: 34df1a49b69337a2b4352ae2340c12204d09270b [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result
2// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s > %t
John McCall8f0e8d22011-06-15 23:25:17 +00003// RUN: diff %t %s.result
Argyrios Kyrtzidisd8b42162012-01-12 02:34:32 +00004// DISABLE: mingw32
John McCall8f0e8d22011-06-15 23:25:17 +00005
6@interface A
7- (id)retain;
8- (id)autorelease;
9- (oneway void)release;
10- (void)dealloc;
11@end
12
13void test1(A *a) {
14 [a dealloc];
15}
16
17@interface Test2 : A
18- (void) dealloc;
19@end
20
21@implementation Test2
22- (void) dealloc {
23 [super dealloc];
24}
25@end