mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 15:43:06 +00:00
All tests have been manually verified which are now passing. This means that any remaining TODO is an actual to-be-fixed or to-be-implemented test case.
23 lines
473 B
Zig
23 lines
473 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
|
|
test {
|
|
const T = @TypeOf(.{ @as(i32, 0), @as(u32, 0) });
|
|
var a: T = .{ 0, 0 };
|
|
_ = a;
|
|
}
|
|
|
|
test {
|
|
if (builtin.zig_backend == .stage1) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
|
|
|
|
const S = struct {
|
|
comptime x: i32 = 0,
|
|
comptime y: u32 = 0,
|
|
};
|
|
var a: S = .{};
|
|
_ = a;
|
|
var b = S{};
|
|
_ = b;
|
|
}
|