Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -verify -fsyntax-only  %s
      2 
      3 __attribute__((objc_runtime_visible))
      4 @interface A
      5 @end
      6 
      7 @interface A(X)
      8 @end
      9 
     10 @implementation A(X) // expected-error{{cannot implement a category for class 'A' that is only visible via the Objective-C runtime}}
     11 @end
     12 
     13 @interface B : A
     14 @end
     15 
     16 @implementation B // expected-error{{cannot implement subclass 'B' of a superclass 'A' that is only visible via the Objective-C runtime}}
     17 @end
     18 
     19 
     20