mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-06-14 04:34:02 -04:00
7fe2a3d104
Adds a test case that will pull-in compiler-rt symbols, and therefore link with the compiler-rt archive file.
7 lines
118 B
Zig
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;
|
|
}
|