Differences From Artifact [a0a51d6d45]:
- File
tests/OFInvocationTests.m
— part of check-in
[09be825f88]
at
2019-09-29 15:58:33
on branch trunk
— Remove OFAutoreleasePool
OFAutoreleasePools have long been discouraged in favor of the runtime's
autorelease pools. (user: js, size: 14508) [annotate] [blame] [check-ins using]
To Artifact [a4ee125d47]:
- File tests/OFInvocationTests.m — part of check-in [090f42fc70] at 2019-11-24 16:42:10 on branch trunk — Fix compilation for iOS/ARM64 with newer Xcode (user: js, size: 14551) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
: (unsigned int)i
: (struct test_struct *)ptr
: (struct test_struct)st
{
return st;
}
- (void)invocationTestMethod2: (id)obj
{
assert(obj == self);
}
- (int)invocationTestMethod3: (int)i1
: (int)i2
| > | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
: (unsigned int)i
: (struct test_struct *)ptr
: (struct test_struct)st
{
return st;
}
#ifdef OF_INVOCATION_CAN_INVOKE
- (void)invocationTestMethod2: (id)obj
{
assert(obj == self);
}
- (int)invocationTestMethod3: (int)i1
: (int)i2
|
| ︙ | ︙ | |||
127 128 129 130 131 132 133 |
: (long double)d15
: (long double)d16
{
return (d1 + d2 + d3 + d4 + d5 + d6 + d7 + d8 + d9 + d10 + d11 +
d12 + d13 + d14 + d15 + d16) / 16;
}
| | | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
: (long double)d15
: (long double)d16
{
return (d1 + d2 + d3 + d4 + d5 + d6 + d7 + d8 + d9 + d10 + d11 +
d12 + d13 + d14 + d15 + d16) / 16;
}
# if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__)
- (complex double)invocationTestMethod7: (complex float)c1
: (complex double)c2
: (complex float)c3
: (complex double)c4
: (complex float)c5
: (complex double)c6
: (complex float)c7
|
| ︙ | ︙ | |||
203 204 205 206 207 208 209 | OF_ENSURE(creal(c14) == 14.0 && cimag(c14) == 7.0); OF_ENSURE(creal(c15) == 15.0 && cimag(c15) == 7.5); OF_ENSURE(creal(c16) == 16.0 && cimag(c16) == 8.0); return (c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9 + c10 + c11 + c12 + c13 + c14 + c15 + c16) / 16; } | | | | 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | OF_ENSURE(creal(c14) == 14.0 && cimag(c14) == 7.0); OF_ENSURE(creal(c15) == 15.0 && cimag(c15) == 7.5); OF_ENSURE(creal(c16) == 16.0 && cimag(c16) == 8.0); return (c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9 + c10 + c11 + c12 + c13 + c14 + c15 + c16) / 16; } # endif # ifdef __SIZEOF_INT128__ __extension__ - (__int128)invocationTestMethod9: (int)i1 : (__int128)i2 : (__int128)i3 : (__int128)i4 : (int)i5 : (__int128)i6 |
| ︙ | ︙ | |||
247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
OF_ENSURE(i15 == mask + 15);
OF_ENSURE(i16 == mask + 16);
return ((i1 + (int)i2 + (int)i3 + (int)i4 + i5 + (int)i6 + (int)i7 +
(int)i8 + (int)i9 + (int)i10 + (int)i11 + (int)i12 + (int)i13 +
(int)i14 + (int)i15 + (int)i16) / 16) + mask;
}
#endif
- (void)invocationTests
{
void *pool = objc_autoreleasePoolPush();
SEL selector = @selector(invocationTestMethod1::::);
OFMethodSignature *sig = [self methodSignatureForSelector: selector];
| > | 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
OF_ENSURE(i15 == mask + 15);
OF_ENSURE(i16 == mask + 16);
return ((i1 + (int)i2 + (int)i3 + (int)i4 + i5 + (int)i6 + (int)i7 +
(int)i8 + (int)i9 + (int)i10 + (int)i11 + (int)i12 + (int)i13 +
(int)i14 + (int)i15 + (int)i16) / 16) + mask;
}
# endif
#endif
- (void)invocationTests
{
void *pool = objc_autoreleasePoolPush();
SEL selector = @selector(invocationTestMethod1::::);
OFMethodSignature *sig = [self methodSignatureForSelector: selector];
|
| ︙ | ︙ |