mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 02:03:08 +00:00
22 lines
397 B
Zig
22 lines
397 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
|
|
|
|
const S = struct {
|
|
comptime x: i32 = 0,
|
|
comptime y: u32 = 0,
|
|
};
|
|
var a: S = .{};
|
|
_ = a;
|
|
var b = S{};
|
|
_ = b;
|
|
}
|