mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 17:43:17 +00:00
Some tests are now failing due to debug info changes, some tests now pass due to improved compiler functionality.
12 lines
338 B
Zig
12 lines
338 B
Zig
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
|
|
|
|
try std.testing.expect(for ([1]u8{0}) |x| {
|
|
if (x == 0) break true;
|
|
} else false);
|
|
}
|