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`.
28 lines
486 B
Objective-C
28 lines
486 B
Objective-C
#import "direct.h"
|
|
|
|
#define TEST_METHOD_IMPL(NAME) (uint64_t)NAME:(uint64_t)arg { return arg; }
|
|
|
|
@implementation CallingConventions : NSObject
|
|
|
|
+ TEST_METHOD_IMPL(regular);
|
|
- TEST_METHOD_IMPL(regular);
|
|
|
|
+ TEST_METHOD_IMPL(direct);
|
|
- TEST_METHOD_IMPL(direct);
|
|
|
|
@end
|
|
|
|
@implementation CallingConventions(Ext)
|
|
|
|
+ TEST_METHOD_IMPL(regularExt);
|
|
- TEST_METHOD_IMPL(regularExt);
|
|
|
|
+ TEST_METHOD_IMPL(directExt);
|
|
- TEST_METHOD_IMPL(directExt);
|
|
|
|
@end
|
|
|
|
@implementation CallingConventionsHeir
|
|
|
|
@end
|