| 1 | #update=initial version with compile error |
| 2 | #file=main.zig |
| 3 | pub fn main() void {} |
| 4 | comptime { |
| 5 | @compileError("this is an error"); |
| 6 | } |
| 7 | comptime { |
| 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 |
| 15 | pub fn main() void {} |
| 16 | comptime { |
| 17 | //@compileError("this is an error"); |
| 18 | } |
| 19 | comptime { |
| 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") |