mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 19:00:52 +08:00
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.
6 lines
97 B
Zig
6 lines
97 B
Zig
export fn foo() align(1) void {}
|
|
|
|
// compile
|
|
// backend=selfhosted
|
|
// target=wasm32-freestanding
|