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

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

#write test.zig @1/test.zig
#update "add a field"
#check stdout {
2 100
#}

#write test.zig @2/test.zig
#update "remove all fields"
#check errors {
test.zig:15:24: error: no field named 'x' in struct 'test.S'
test.zig:1:11: note: struct declared here
#}

#write test.zig @3/test.zig
#update "remove reference to non-existent field"
#check stdout {
0 <no fields>
#}
