1 // RUN: %clang_cc1 -verify -fobjc-disable-direct-methods-for-testing %s
3 // expected-no-diagnostics
5 #define DIRECT __attribute__((objc_direct))
6 #define DIRECT_MEMBERS __attribute__((objc_direct_members))
8 __attribute__((objc_root_class))
10 -(void)direct_method DIRECT;
14 -(void)direct_method DIRECT {}
17 __attribute__((objc_root_class))
20 -(void)direct_method2;
24 -(void)direct_method2 {}
27 __attribute__((objc_root_class))
29 @property (direct) int direct_property;
32 @implementation Z @end