zig/test/incremental/compile_error_then_log
2025-01-15 15:11:36 -08:00

23 lines
465 B
Plaintext

#target=x86_64-linux-selfhosted
#target=x86_64-linux-cbe
#target=x86_64-windows-cbe
#target=wasm32-wasi-selfhosted
#update=initial version with compile error
#file=main.zig
comptime {
@compileError("this is an error");
}
comptime {
@compileLog("this is a log");
}
#expect_error=ignored
#update=remove the compile error
#file=main.zig
comptime {
//@compileError("this is an error");
}
comptime {
@compileLog("this is a log");
}
#expect_error=ignored