re-enable fixed test from upstream zig issue

This commit is contained in:
Mitchell Hashimoto 2024-11-04 09:41:21 -08:00
parent 7e1acc8a45
commit 23a0e72227
No known key found for this signature in database
GPG key ID: 523D5DC389D273BC

View file

@ -216,15 +216,12 @@ fn MsgSendFn(
}
test {
// https://github.com/ziglang/zig/issues/12360
if (true) return error.SkipZigTest;
const testing = std.testing;
try testing.expectEqual(fn (
u8,
objc.Sel,
) callconv(.C) u64, MsgSendFn(u64, u8, @TypeOf(.{})));
try testing.expectEqual(fn (u8, objc.Sel, u16, u32) callconv(.C) u64, MsgSendFn(u64, u8, @TypeOf(.{
c.id,
c.SEL,
) callconv(.C) u64, MsgSendFn(u64, c.id, @TypeOf(.{})));
try testing.expectEqual(fn (c.id, c.SEL, u16, u32) callconv(.C) u64, MsgSendFn(u64, c.id, @TypeOf(.{
@as(u16, 0),
@as(u32, 0),
})));