master
 1fn assert(ok: bool) void {
 2    if (!ok) unreachable;
 3}
 4
 5pub fn main() void {
 6    var x: u32 = 0;
 7    for ("hello") |_| {
 8        x += 1;
 9    }
10    assert("hello".len == x);
11}
12
13// run
14// backend=selfhosted,llvm
15// target=x86_64-linux,x86_64-macos
16//