zig/test/behavior/duplicated_test_names.zig

22 lines
330 B
Zig
Raw Normal View History

2023-05-11 06:53:34 +01:00
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 {
2024-01-13 17:44:44 +00:00
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (thingy(1, 2) != 3) unreachable;
}