| 1 | #exe { |
| 2 | -Mroot=main.zig |
| 3 | #} |
| 4 | |
| 5 | #write main.zig { |
| 6 | pub fn main() !void { |
| 7 | @compileError("uh oh"); |
| 8 | } |
| 9 | #} |
| 10 | #update |
| 11 | #check errors { |
| 12 | main.zig:2:5: error: uh oh |
| 13 | #} |
| 14 | |
| 15 | #write main.zig { |
| 16 | pub fn main() !void { |
| 17 | @compileError("uh oh"); |
| 18 | #} |
| 19 | #update "add parse error" |
| 20 | #check errors { |
| 21 | main.zig:3:1: error: expected statement, found 'EOF' |
| 22 | #} |
| 23 | |
| 24 | #write main.zig { |
| 25 | pub fn main() !void { |
| 26 | @compileError("uh oh"); |
| 27 | } |
| 28 | #} |
| 29 | #update "fix parse error" |
| 30 | #check errors { |
| 31 | main.zig:2:5: error: uh oh |
| 32 | #} |
| 33 | |
| 34 | #write main.zig { |
| 35 | pub fn main() !void { |
| 36 | @compileError("uh oh"); |
| 37 | #} |
| 38 | #update "add parse error again" |
| 39 | #check errors { |
| 40 | main.zig:3:1: error: expected statement, found 'EOF' |
| 41 | #} |
| 42 | |
| 43 | #write main.zig { |
| 44 | pub fn main() !void { |
| 45 | //@compileError("uh oh"); |
| 46 | #} |
| 47 | #update "comment @compileError call" |
| 48 | #check errors { |
| 49 | main.zig:3:1: error: expected statement, found 'EOF' |
| 50 | #} |
| 51 | |
| 52 | #write main.zig { |
| 53 | pub fn main() !void { |
| 54 | //@compileError("uh oh"); |
| 55 | } |
| 56 | #} |
| 57 | #update "fix parse error again" |
| 58 | #check stdout |