#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
export fn entry(b: bool) void {
    comptime var int = 0;
    if (b) {
        comptime incr(&int);
    }
}
fn incr(x: *comptime_int) void {
    x.* += 1;
}
#}
#update
#check errors {
test.zig:8:9: error: store to comptime variable depends on runtime condition
test.zig:3:9: note: runtime condition here
test.zig:4:22: note: called at comptime here
#}
