2022-04-27 14:37:54 +01:00
|
|
|
export fn _start() noreturn {
|
|
|
|
const b = true;
|
|
|
|
var f: u32 = 1;
|
2023-11-11 07:27:31 +00:00
|
|
|
_ = &f;
|
2022-04-27 14:37:54 +01:00
|
|
|
@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
|
2023-03-15 01:02:33 +00:00
|
|
|
//
|
|
|
|
// Compile Log Output:
|
2023-07-04 15:34:31 +01:00
|
|
|
// @as(bool, true), @as(comptime_int, 20), @as(u32, [runtime value]), @as(fn () void, (function 'x'))
|
2023-03-15 01:02:33 +00:00
|
|
|
// @as(comptime_int, 1000)
|