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

#write test.zig {
const E = enum {
    a,
    b,
    c,
};

const U = union(E) {
    a: i32,
    b: f64,
};

export fn entry() usize {
    return @sizeOf(U);
}
#}
#update
#check errors {
test.zig:7:11: error: enum field 'c' missing from union
test.zig:4:5: note: enum field here
#}
