brintos

brintos / llvm-project-archived public Read only

0
0
Text · 432 B · b5ec809 Raw
20 lines · plain
1// RUN: %clang_cc1 -verify -fsyntax-only  %s2 3__attribute__((objc_runtime_visible))4@interface A5@end6 7@interface A(X)8@end9 10@implementation A(X) // expected-error{{cannot implement a category for class 'A' that is only visible via the Objective-C runtime}}11@end12 13@interface B : A14@end15 16@implementation B // expected-error{{cannot implement subclass 'B' of a superclass 'A' that is only visible via the Objective-C runtime}}17@end18 19 20