mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-29 19:26:04 +08:00
25 lines
354 B
Plaintext
25 lines
354 B
Plaintext
#exe {
|
|
-Mroot=main.zig
|
|
#}
|
|
|
|
#write main.zig {
|
|
const std = @import("std");
|
|
pub fn main() !void {}
|
|
#}
|
|
#update
|
|
#check stdout
|
|
|
|
#write main.zig {
|
|
pub fn main() !void {
|
|
#}
|
|
#update "introduce parse error"
|
|
#check errors {
|
|
main.zig:2:1: error: expected statement, found 'EOF'
|
|
#}
|
|
|
|
#write main.zig {
|
|
pub fn main() !void {}
|
|
#}
|
|
#update "fix parse error"
|
|
#check stdout
|