1 // RUN: %clang_cc1 -verify -fsyntax-only %s
3 __attribute__((objc_runtime_visible))
10 @implementation A(X) // expected-error{{cannot implement a category for class 'A' that is only visible via the Objective-C runtime}}
16 @implementation B // expected-error{{cannot implement subclass 'B' of a superclass 'A' that is only visible via the Objective-C runtime}}