authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-25 12:49:01-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-19 09:37:53-07:00
log660b3e20907ccfc169dd07e25d4a7a13a0551e9f
tree6acf3bc0114180cdd327b8dc315719aa1d5d2c1b
parent31ff6e3fc11c490cc72b726ea22042ea344a18a3

langref: disable var args example on aarch64-windows

See tracking issues #14096 and #16961. Also, any time a test is skipped it should link to the open bug report for it.

2 files changed, 12 insertions(+), 4 deletions(-)

doc/langref.html.in+8-3
......@@ -11133,9 +11133,14 @@ fn add(count: c_int, ...) callconv(.C) c_int {
1113311133}
1113411134
1113511135test "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 }
1113911144
1114011145 try std.testing.expectEqual(@as(c_int, 0), add(0));
1114111146 try std.testing.expectEqual(@as(c_int, 1), add(1, @as(c_int, 1)));
test/behavior/var_args.zig+4-1
......@@ -232,7 +232,10 @@ test "unused VaList arg" {
232232 // https://github.com/ziglang/zig/issues/14096
233233 return error.SkipZigTest;
234234 }
235 if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO
235 if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) {
236 // https://github.com/ziglang/zig/issues/16961
237 return error.SkipZigTest; // TODO
238 }
236239
237240 const S = struct {
238241 fn thirdArg(dummy: c_int, ...) callconv(.C) c_int {