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