master
 1const std = @import("std");
 2
 3pub fn panic(message: []const u8, stack_trace: ?*std.builtin.StackTrace, _: ?usize) noreturn {
 4    _ = stack_trace;
 5    if (std.mem.eql(u8, message, "for loop over objects with non-equal lengths")) {
 6        std.process.exit(0);
 7    }
 8    std.process.exit(1);
 9}
10
11pub fn main() !void {
12    var slice: []const u8 = "hello";
13    _ = &slice;
14    for (10..20, slice, 20..30) |a, b, c| {
15        _ = a;
16        _ = b;
17        _ = c;
18        return error.TestFailed;
19    }
20    return error.TestFailed;
21}
22// run
23// backend=selfhosted,llvm
24// target=x86_64-linux,aarch64-linux