Skip to content

Commit 73fba19

Browse files
committed
[test] Tweak class-layout-from-objc.m to avoid macros named "check"
rdar://problem/47389594
1 parent 402818d commit 73fba19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

validation-test/Runtime/class-layout-from-objc.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#import "Classes.h"
3636

37-
void check(Class c) {
37+
void checkClass(Class c) {
3838
assert(c);
3939

4040
size_t expectedSize = [c totalSize];
@@ -71,8 +71,8 @@ int main(int argc, const char * const argv[]) {
7171

7272
@autoreleasepool {
7373
NSLog(@"%zd", class_getInstanceSize([OneWordSuperclass class]));
74-
check([StaticClass class]);
75-
check(objc_getClass("Classes.DynamicClass"));
76-
check(objc_getClass("Classes.PureSwiftClass"));
74+
checkClass([StaticClass class]);
75+
checkClass(objc_getClass("Classes.DynamicClass"));
76+
checkClass(objc_getClass("Classes.PureSwiftClass"));
7777
}
7878
}

0 commit comments

Comments
 (0)