const expect = @import("std").testing.expect; fn foo(condition: bool, b: u32) void { const a = if (condition) b else return; @panic("do something with a"); } test "noreturn" { foo(false, 1); }