xref: /aosp_15_r20/external/clang/test/SemaObjC/attr-objc-runtime-visible.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
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