Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-arc -fblocks -verify %s
      2 // RUN: not %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-arc -fblocks -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
      3 // rdar://11987838
      4 
      5 @protocol NSObject
      6 - dealloc; // expected-error {{return type must be correctly specified as 'void' under ARC, instead of 'id'}}
      7 // CHECK: fix-it:"{{.*}}":{6:3-6:3}:"(void)"
      8 @end
      9 
     10 @protocol Foo <NSObject> @end
     11 
     12 @interface Root <Foo>
     13 @end
     14 
     15 @interface Baz : Root {
     16 }
     17 @end
     18 
     19 @implementation Baz
     20 -  (id) dealloc { // expected-error {{return type must be correctly specified as 'void' under ARC, instead of 'id'}}
     21 // CHECK: fix-it:"{{.*}}":{20:5-20:7}:"void"
     22 }
     23 
     24 @end
     25 
     26