1 // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-arc -fblocks -Wdealloc-in-category -verify %s
2 // RUN: not %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-arc -fblocks -Wdealloc-in-category -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
5 - dealloc; // expected-error {{return type must be correctly specified as 'void' under ARC, instead of 'id'}}
6 // CHECK: fix-it:"{{.*}}":{5:3-5:3}:"(void)"
9 @protocol Foo <NSObject> @end
14 @interface Baz : Root {
19 - (id) dealloc { // expected-error {{return type must be correctly specified as 'void' under ARC, instead of 'id'}}
20 // CHECK: fix-it:"{{.*}}":{19:5-19:7}:"void"
29 @interface Subclass : Base
32 @interface Subclass (CAT)
36 @implementation Subclass (CAT)
37 - (void)dealloc { // expected-warning {{-dealloc is being overridden in a category}}
41 @interface NSObject @end
42 @interface NSError:NSObject
45 @interface NSError(CAT)
46 - (NSError *)MCCopyAsPrimaryError __attribute__((objc_method_family(new)));
48 @implementation NSError(CAT)
49 - (NSError *)MCCopyAsPrimaryError {