1#update=initial version with compile error
2#file=main.zig
3pub fn main() void {}
4comptime {
5 @compileError("this is an error");
6}
7comptime {
8 @compileLog("this is a log");
9}
10#expect_error=main.zig:3:5: error: this is an error
11#expect_compile_log=@as(*const [13:0]u8, "this is a log")
12
13#update=remove the compile error
14#file=main.zig
15pub fn main() void {}
16comptime {
17 //@compileError("this is an error");
18}
19comptime {
20 @compileLog("this is a log");
21}
22#expect_error=main.zig:6:5: error: found compile log statement
23#expect_compile_log=@as(*const [13:0]u8, "this is a log")