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

#write test.zig {
const S = struct {
    foo: u32,
    foo: u32,
};

export fn entry() void {
    const s: S = .{ .foo = 100 };
    _ = s;
}
#}
#update
#check errors {
test.zig:2:5: error: duplicate struct member name 'foo'
test.zig:3:5: note: duplicate name here
test.zig:1:11: note: struct declared here
#}
