| ... | ... | @@ -11133,9 +11133,14 @@ fn add(count: c_int, ...) callconv(.C) c_int { |
| 11133 | 11133 | } |
| 11134 | 11134 | |
| 11135 | 11135 | test "defining a variadic function" { |
| 11136 | | // Variadic functions are currently disabled on some targets due to miscompilations. |
| 11137 | | if (builtin.cpu.arch == .aarch64 and builtin.os.tag != .windows and builtin.os.tag != .macos) return error.SkipZigTest; |
| 11138 | | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; |
| 11136 | if (builtin.cpu.arch == .aarch64 and builtin.os.tag != .macos) { |
| 11137 | // https://github.com/ziglang/zig/issues/14096 |
| 11138 | return error.SkipZigTest; |
| 11139 | } |
| 11140 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) { |
| 11141 | // https://github.com/ziglang/zig/issues/16961 |
| 11142 | return error.SkipZigTest; |
| 11143 | } |
| 11139 | 11144 | |
| 11140 | 11145 | try std.testing.expectEqual(@as(c_int, 0), add(0)); |
| 11141 | 11146 | try std.testing.expectEqual(@as(c_int, 1), add(1, @as(c_int, 1))); |