65d781758c
On some platforms, `NSUInteger` is 32-bit, while the objc_direct tests expected it to be represented as `ULong`. So the tests failed on those platforms. Fix the tests by replacing `NSUInteger` with `uint64_t`.
32 lines
792 B
Objective-C
32 lines
792 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
__attribute__((objc_runtime_name("CC")))
|
|
__attribute__((swift_name("CC")))
|
|
@interface CallingConventions : NSObject
|
|
|
|
+ (uint64_t)regular:(uint64_t)arg;
|
|
- (uint64_t)regular:(uint64_t)arg;
|
|
|
|
+ (uint64_t)direct:(uint64_t)arg __attribute__((objc_direct));
|
|
- (uint64_t)direct:(uint64_t)arg __attribute__((objc_direct));
|
|
|
|
@end
|
|
|
|
@interface CallingConventions(Ext)
|
|
|
|
+ (uint64_t)regularExt:(uint64_t)arg;
|
|
- (uint64_t)regularExt:(uint64_t)arg;
|
|
|
|
+ (uint64_t)directExt:(uint64_t)arg __attribute__((objc_direct));
|
|
- (uint64_t)directExt:(uint64_t)arg __attribute__((objc_direct));
|
|
|
|
@end
|
|
|
|
__attribute__((objc_runtime_name("CCH")))
|
|
__attribute__((swift_name("CCH")))
|
|
@interface CallingConventionsHeir : CallingConventions
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END |