zig/test/behavior/duplicated_test_names.zig
Ali Cheraghi 872f68c9cb
rename spirv backend name
`stage2_spirv64` -> `stage2_spirv`
2025-06-16 13:22:19 +03:30

23 lines
402 B
Zig

const builtin = @import("builtin");
const Namespace = struct {
test "thingy" {}
};
fn thingy(a: usize, b: usize) usize {
return a + b;
}
comptime {
_ = Namespace;
}
test "thingy" {}
test thingy {
if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
if (thingy(1, 2) != 3) unreachable;
}