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

#write test.zig {
pub fn main() void {
    foo();
}
inline fn foo() void {
    bar();
}
inline fn bar() void {
    baz();
}
inline fn baz() void {
    @panic("oh no");
}
#}
#update
#check panic {
thread ? panic: oh no
test.zig:11:5: 0x? in baz (test*)
    @panic("oh no");
    ^
test.zig:8:8: 0x? in bar (test*)
    baz();
       ^
test.zig:5:8: 0x? in foo (test*)
    bar();
       ^
test.zig:2:8: 0x? in main (test*)
    foo();
       ^
...
#}
