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