zig/test/incremental/temporary_parse_error
mlugg fcf8d5ada2
incr-check: check compile errors against expected
Also modifies all incremental cases using `#expect_error` to include the
errors and notes which are expected.
2025-01-25 09:32:40 +00:00

20 lines
439 B
Plaintext

#target=x86_64-linux-selfhosted
#target=x86_64-linux-cbe
#target=x86_64-windows-cbe
#target=wasm32-wasi-selfhosted
#update=initial version
#file=main.zig
const std = @import("std");
pub fn main() !void {}
#expect_stdout=""
#update=introduce parse error
#file=main.zig
pub fn main() !void {
#expect_error=main.zig:2:1: error: expected statement, found 'EOF'
#update=fix parse error
#file=main.zig
pub fn main() !void {}
#expect_stdout=""