mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 10:03:21 +00:00
Singular tests (such as in the bug ones) are moved to top level with exclusions for non-passing backends. The big behavior tests such as array_llvm and slice are moved to the inner scope with the C backend disabled. They all pass for the wasm backend now
10 lines
316 B
Zig
10 lines
316 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
|
|
test "fixed" {
|
|
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
|
|
const x: f32 align(128) = 12.34;
|
|
try std.testing.expect(@ptrToInt(&x) % 128 == 0);
|
|
}
|