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