mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
11 lines
390 B
Zig
11 lines
390 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
|
|
test "fixed" {
|
|
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
|
|
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);
|
|
}
|