mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 08:04:50 +01:00
12 lines
237 B
Zig
12 lines
237 B
Zig
const std = @import("std");
|
|
const expectEqual = std.testing.expectEqual;
|
|
|
|
test {
|
|
const a = {};
|
|
const b = void{};
|
|
try expectEqual(void, @TypeOf(a));
|
|
try expectEqual(void, @TypeOf(b));
|
|
try expectEqual(a, b);
|
|
}
|
|
|
|
// test
|