zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit caaa26c9f0db92c463a826f15c8392162be2e037 (tree)
parent 4a387996311a025a021409f08a61bab9e9885987
Author: Vexu <git@vexu.eu>
Date:   Wed, 17 Jun 2020 20:24:37 +0300

reference emit_raw in std lib tests

Diffstat:
Mlib/std/build.zig | 7+++++++
Mlib/std/build/emit_raw.zig | 4++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/lib/std/build.zig b/lib/std/build.zig @@ -2558,3 +2558,10 @@ pub const InstalledFile = struct { dir: InstallDir, path: []const u8, }; + +test "" { + // The only purpose of this test is to get all these untested functions + // to be referenced to avoid regression so it is okay to skip some targets. + if (comptime std.Target.current.cpu.arch.ptrBitWidth() == 64) + std.meta.refAllDecls(@This()); +} diff --git a/lib/std/build/emit_raw.zig b/lib/std/build/emit_raw.zig @@ -215,3 +215,7 @@ pub const InstallRawStep = struct { try emitRaw(builder.allocator, full_src_path, full_dest_path); } }; + +test "" { + std.meta.refAllDecls(InstallRawStep); +}