| 1 | #exe { |
| 2 | -Mroot=main.zig |
| 3 | #} |
| 4 | |
| 5 | #write main.zig { |
| 6 | pub fn main() void {} |
| 7 | comptime { |
| 8 | @compileError("this is an error"); |
| 9 | } |
| 10 | comptime { |
| 11 | @compileLog("this is a log"); |
| 12 | } |
| 13 | #} |
| 14 | #update "compile error" |
| 15 | #check errors { |
| 16 | main.zig:3:5: error: this is an error |
| 17 | |
| 18 | Compile Log Output: |
| 19 | @as(*const [13:0]u8, "this is a log") |
| 20 | #} |
| 21 | |
| 22 | #write main.zig { |
| 23 | pub fn main() void {} |
| 24 | comptime { |
| 25 | //@compileError("this is an error"); |
| 26 | } |
| 27 | comptime { |
| 28 | @compileLog("this is a log"); |
| 29 | } |
| 30 | #} |
| 31 | #update "remove the compile error" |
| 32 | #check errors { |
| 33 | main.zig:6:5: error: found compile log statement |
| 34 | |
| 35 | Compile Log Output: |
| 36 | @as(*const [13:0]u8, "this is a log") |
| 37 | #} |