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