#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
var n: u8 = 5;

const S = struct {
    a: u8,
};

var a: S = .{ .a = n };

export fn entry1() void {
    _ = a;
}

var b: S = S{ .a = n };

export fn entry2() void {
    _ = b;
}
#}
#update
#check errors {
test.zig:7:13: error: unable to evaluate comptime expression
test.zig:7:16: note: operation is runtime due to this operand
test.zig:7:13: note: initializer of container-level variable must be comptime-known
test.zig:13:13: error: unable to evaluate comptime expression
test.zig:13:16: note: operation is runtime due to this operand
test.zig:13:13: note: initializer of container-level variable must be comptime-known
#}
