| 1 | #update=initial version |
| 2 | #file=main.zig |
| 3 | pub fn main() !void { |
| 4 | @compileError("uh oh"); |
| 5 | } |
| 6 | #expect_error=main.zig:2:5: error: uh oh |
| 7 | |
| 8 | #update=add parse error |
| 9 | #file=main.zig |
| 10 | pub fn main() !void { |
| 11 | @compileError("uh oh"); |
| 12 | #expect_error=main.zig:3:1: error: expected statement, found 'EOF' |
| 13 | |
| 14 | #update=fix parse error |
| 15 | #file=main.zig |
| 16 | pub fn main() !void { |
| 17 | @compileError("uh oh"); |
| 18 | } |
| 19 | #expect_error=main.zig:2:5: error: uh oh |
| 20 | |
| 21 | #update=add parse error again |
| 22 | #file=main.zig |
| 23 | pub fn main() !void { |
| 24 | @compileError("uh oh"); |
| 25 | #expect_error=main.zig:3:1: error: expected statement, found 'EOF' |
| 26 | |
| 27 | #update=comment @compileError call |
| 28 | #file=main.zig |
| 29 | pub fn main() !void { |
| 30 | //@compileError("uh oh"); |
| 31 | #expect_error=main.zig:3:1: error: expected statement, found 'EOF' |
| 32 | |
| 33 | #update=fix parse error again |
| 34 | #file=main.zig |
| 35 | pub fn main() !void { |
| 36 | //@compileError("uh oh"); |
| 37 | } |
| 38 | #expect_stdout="" |