#require incremental
#require !windows
#zig build-exe {
--name test
-Mroot=test.zig
#}

#write test.zig {
pub fn main() void {
    foo(false);
    foo(true);
}
inline fn foo(b: bool) void {
    if (b) @panic("oh no");
}
#}
#update
#check panic {
thread ? panic: oh no
test.zig:6:12: 0x? in foo (test*)
    if (b) @panic("oh no");
           ^
test.zig:3:8: 0x? in main (test*)
    foo(true);
       ^
...
#}

#write test.zig {
// update lines
pub fn main() void {
    foo(false);
    foo(true);
}
inline fn foo(b: bool) void {
    if (b) @panic("oh no");
}
#}
#update "lines"
#check panic {
thread ? panic: oh no
test.zig:7:12: 0x? in foo (test*)
    if (b) @panic("oh no");
           ^
test.zig:4:8: 0x? in main (test*)
    foo(true);
       ^
...
#}
