Differences From Artifact [475125e587]:
- File tests/OFInvocationTests.m — part of check-in [4b06ad56fd] at 2021-04-07 22:31:11 on branch trunk — Remove some leftovers from invocation (user: js, size: 2694) [annotate] [blame] [check-ins using] [more...]
To Artifact [a2e3d6960f]:
- File
tests/OFInvocationTests.m
— part of check-in
[14f1e22d79]
at
2021-05-08 23:22:59
on branch trunk
— tests: Align more with ObjFW style
ObjFW's style changed over the years, but the tests were never adjusted
to it. (user: js, size: 2692) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
20 21 22 23 24 25 26 | #if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__) # include <complex.h> #endif #import "TestsAppDelegate.h" | | | | | | | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
#if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__)
# include <complex.h>
#endif
#import "TestsAppDelegate.h"
static OFString *const module = @"OFInvocation";
struct TestStruct {
unsigned char c;
unsigned int i;
};
@implementation TestsAppDelegate (OFInvocationTests)
- (struct TestStruct)invocationTestMethod1: (unsigned char)c
: (unsigned int)i
: (struct TestStruct *)ptr
: (struct TestStruct)st
{
return st;
}
- (void)invocationTests
{
void *pool = objc_autoreleasePoolPush();
SEL selector = @selector(invocationTestMethod1::::);
OFMethodSignature *sig = [self methodSignatureForSelector: selector];
OFInvocation *invocation;
struct TestStruct st, st2, *stp = &st, *stp2;
unsigned const char c = 0xAA;
unsigned char c2;
const unsigned int i = 0x55555555;
unsigned int i2;
memset(&st, '\xFF', sizeof(st));
st.c = 0x55;
|
| ︙ | ︙ |