mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
17 lines
289 B
Zig
17 lines
289 B
Zig
export fn _start() noreturn {
|
|
const b = true;
|
|
var f: u32 = 1;
|
|
@compileLog(b, 20, f, x);
|
|
@compileLog(1000);
|
|
unreachable;
|
|
}
|
|
export fn other() void {
|
|
@compileLog(1234);
|
|
}
|
|
fn x() void {}
|
|
|
|
// error
|
|
//
|
|
// :9:5: error: found compile log statement
|
|
// :4:5: note: also here
|