mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 16:12:33 +00: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;
|
|
}
|