blob: b2a79c0847555cd2b1c11c623d2d2755d9bd0a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
const std = @import("std");
const builtin = @import("builtin");
test {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
try std.testing.expect(for ([1]u8{0}) |x| {
if (x == 0) break true;
} else false);
}
|