ObjFW  Check-in [658a499d4e]

Overview
Comment:tests: Work around a warning in new Clang versions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 658a499d4e0eaf55e702035db4a82239cddbffa7ffabc1d9b8b2f59b2adea97d
User & Date: js on 2021-08-31 23:43:56
Other Links: manifest | tags
Context
2021-09-02
17:06
Update buildsys check-in: f310e7dd1f user: js tags: trunk
2021-08-31
23:43
tests: Work around a warning in new Clang versions check-in: 658a499d4e user: js tags: trunk
21:36
Add initial objfw.spec check-in: 7aaddd545b user: js tags: trunk
Changes

Modified tests/OFBlockTests.m from [52123616f6] to [6cfef2073c].

54
55
56
57
58
59
60
61




62
63
64
65
66
67
68
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 (^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]])