blob: a6fdaba3355117bcce64c8ff74fbdc8e3f97743c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// RUN: %clang_cc1 -verify -fobjc-disable-direct-methods-for-testing %s
// expected-no-diagnostics
#define DIRECT __attribute__((objc_direct))
#define DIRECT_MEMBERS __attribute__((objc_direct_members))
__attribute__((objc_root_class))
@interface X
-(void)direct_method DIRECT;
@end
@implementation X
-(void)direct_method DIRECT {}
@end
__attribute__((objc_root_class))
DIRECT_MEMBERS
@interface Y
-(void)direct_method2;
@end
@implementation Y
-(void)direct_method2 {}
@end
__attribute__((objc_root_class))
@interface Z
@property (direct) int direct_property;
@end
@implementation Z @end
|