Files
zig/test/cases/function_alignment_one_on_virtual_target.zig
Sassan Haradji 77d0a9c07e Zcu: allow align(1) on functions for targets without function alignment
Targets such as wasm32 and wasm64 do not support setting function alignment, but align(1) is a no-op and should be accepted. Reject only alignments greater than 1 on those targets.

Update the compile-error tests and add a positive test covering align(1) on wasm.
2026-10-24 07:21:58 +02:00

6 lines
97 B
Zig

export fn foo() align(1) void {}
// compile
// backend=selfhosted
// target=wasm32-freestanding