#zig build-exe {
--name test
-Mroot=test.zig
#}

#write test.zig @0/test.zig
#update
#check stdout {
a
#}

#write test.zig @1/test.zig
#update "too many enum fields"
#check errors {
test.zig:7:5: error: enum tag value '4' too large for type 'u2'
#}

#write test.zig @2/test.zig
#update "increase tag size"
#check stdout {
a
#}

#write test.zig @3/test.zig
#update "specify tag directly"
#check errors {
test.zig:9:5: error: found compile log statement

Compile Log Output:
@as(type, u3)
#}

#write test.zig @4/test.zig
#update "change directly-specified tag type"
#check errors {
test.zig:9:5: error: found compile log statement

Compile Log Output:
@as(type, u8)
#}
