| 1 | #exe { |
| 2 | -Mroot=main.zig |
| 3 | #} |
| 4 | |
| 5 | #write main.zig { |
| 6 | const std = @import("std"); |
| 7 | pub fn main() !void {} |
| 8 | #} |
| 9 | #update |
| 10 | #check stdout |
| 11 | |
| 12 | #write main.zig { |
| 13 | pub fn main() !void { |
| 14 | #} |
| 15 | #update "introduce parse error" |
| 16 | #check errors { |
| 17 | main.zig:2:1: error: expected statement, found 'EOF' |
| 18 | #} |
| 19 | |
| 20 | #write main.zig { |
| 21 | pub fn main() !void {} |
| 22 | #} |
| 23 | #update "fix parse error" |
| 24 | #check stdout |