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

#write test.zig {
export fn entry() void {
    const U = union { A: u32, B: u64 };
    var u = U{ .A = 42 };
    var ok = u == .A;
    _ = &u;
    _ = &ok;
}
#}
#update
#check errors {
test.zig:4:14: error: comparison of union and enum literal is only valid for tagged union types
test.zig:2:15: note: union 'test.entry.U' is not a tagged union
#}
