authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-06-17 20:24:37+03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-06-18 20:17:53-04:00
logcaaa26c9f0db92c463a826f15c8392162be2e037
tree758f8a2e68353e2f931f365952d3194ec81906a5
parent4a387996311a025a021409f08a61bab9e9885987

reference emit_raw in std lib tests


2 files changed, 11 insertions(+), 0 deletions(-)

lib/std/build.zig+7
......@@ -2558,3 +2558,10 @@ pub const InstalledFile = struct {
25582558 dir: InstallDir,
25592559 path: []const u8,
25602560};
2561
2562test "" {
2563 // The only purpose of this test is to get all these untested functions
2564 // to be referenced to avoid regression so it is okay to skip some targets.
2565 if (comptime std.Target.current.cpu.arch.ptrBitWidth() == 64)
2566 std.meta.refAllDecls(@This());
2567}
lib/std/build/emit_raw.zig+4
......@@ -215,3 +215,7 @@ pub const InstallRawStep = struct {
215215 try emitRaw(builder.allocator, full_src_path, full_dest_path);
216216 }
217217};
218
219test "" {
220 std.meta.refAllDecls(InstallRawStep);
221}