zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c1ae99efb30b1dcc86b3f41b419685a62413378e (tree)
parent 52e9fd7c3c9c92ff4cca02f10f4e2022c11d9351
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Mon,  6 Jan 2025 16:22:04 +0100

test: Disable `align(N) on functions` and `@alignCast functions` for thumbeb too.

Diffstat:
Mtest/behavior/align.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/behavior/align.zig b/test/behavior/align.zig @@ -347,7 +347,7 @@ test "@alignCast functions" { // function alignment is a compile error on wasm32/wasm64 if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest; - if (native_arch == .thumb) return error.SkipZigTest; + if (native_arch == .thumb or native_arch == .thumbeb) return error.SkipZigTest; try expect(fnExpectsOnly1(simple4) == 0x19); } @@ -512,7 +512,7 @@ test "align(N) on functions" { // function alignment is a compile error on wasm32/wasm64 if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest; - if (native_arch == .thumb) return error.SkipZigTest; + if (native_arch == .thumb or native_arch == .thumbeb) return error.SkipZigTest; try expect((@intFromPtr(&overaligned_fn) & (0x1000 - 1)) == 0); }