blob: d7a72af4f726feba4e5800d0ef3781deaf6e1cfa [file] [log] [blame]
John McCall9b0a7ce2011-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 McCalld70fb982011-06-15 23:25:17 +00003// RUN: diff %t %s.result
John McCalld70fb982011-06-15 23:25:17 +00004
5@interface A
6- (id)retain;
7- (id)autorelease;
8- (oneway void)release;
9- (void)dealloc;
10@end
11
12void test1(A *a) {
13 [a dealloc];
14}
15
16@interface Test2 : A
17- (void) dealloc;
18@end
19
20@implementation Test2
21- (void) dealloc {
22 [super dealloc];
23}
24@end