Differences From Artifact [52123616f6]:
- File
tests/OFBlockTests.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: 3087) [annotate] [blame] [check-ins using] [more...]
To Artifact [6cfef2073c]:
- File tests/OFBlockTests.m — part of check-in [658a499d4e] at 2021-08-31 23:43:56 on branch trunk — tests: Work around a warning in new Clang versions (user: js, size: 3101) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
54 55 56 57 58 59 60 | } @implementation TestsAppDelegate (OFBlockTests) - (void)blockTests { void *pool = objc_autoreleasePoolPush(); __block int x; | | > > > | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | } @implementation TestsAppDelegate (OFBlockTests) - (void)blockTests { void *pool = objc_autoreleasePoolPush(); __block int x; void (^stackBlock)(void) = ^ { x = 0; (void)x; }; void (^mallocBlock)(void); int (^voidBlock)(void); TEST(@"Class of stack block", (Class)&_NSConcreteStackBlock == objc_getClass("OFStackBlock") && [stackBlock isKindOfClass: [OFBlock class]]) |
︙ | ︙ |