zig/test/link/wasm/archive/main.zig
Luuk de Gram 7fe2a3d104
test/link: add wasm linker-test for archives
Adds a test case that will pull-in compiler-rt symbols,
and therefore link with the compiler-rt archive file.
2022-08-20 15:46:39 +02:00

7 lines
118 B
Zig

export fn foo() void {
var a: f16 = 2.2;
// this will pull-in compiler-rt
var b = @trunc(a);
_ = b;
}