aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-06-17 20:24:37 +0300
committerAndrew Kelley <andrew@ziglang.org>2020-06-18 20:17:53 -0400
commitcaaa26c9f0db92c463a826f15c8392162be2e037 (patch)
tree758f8a2e68353e2f931f365952d3194ec81906a5 /lib
parent4a387996311a025a021409f08a61bab9e9885987 (diff)
downloadzig-caaa26c9f0db92c463a826f15c8392162be2e037.tar.gz
zig-caaa26c9f0db92c463a826f15c8392162be2e037.zip
reference emit_raw in std lib tests
Diffstat (limited to 'lib')
-rw-r--r--lib/std/build.zig7
-rw-r--r--lib/std/build/emit_raw.zig4
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig
index d98ef71a59..a4d922f2ad 100644
--- 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
index 8fd27d6cfc..746b0ac91b 100644
--- 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);
+}