John McCall | 8f0e8d2 | 2011-06-15 23:25:17 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result |
Argyrios Kyrtzidis | eaed19e | 2011-06-16 00:53:46 +0000 | [diff] [blame^] | 2 | // RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -x objective-c %s > %t |
John McCall | 8f0e8d2 | 2011-06-15 23:25:17 +0000 | [diff] [blame] | 3 | // RUN: diff %t %s.result |
| 4 | |
| 5 | @interface A |
| 6 | - (id)retain; |
| 7 | - (id)autorelease; |
| 8 | - (oneway void)release; |
| 9 | - (void)dealloc; |
| 10 | @end |
| 11 | |
| 12 | void 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 |