aboutsummaryrefslogtreecommitdiff
path: root/lib/std/meta.zig
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2022-05-04 20:01:48 +0200
committerErik Arvstedt <erik.arvstedt@gmail.com>2022-05-04 20:01:48 +0200
commit8b8e57c670132d615f2b5bbf69acf1658c083b12 (patch)
tree2160c485fc16b5536306358d7b710fc3d405772f /lib/std/meta.zig
parent3ed9ef3e6bed3fef6d6cad07920d08b28e20ec3e (diff)
downloadzig-8b8e57c670132d615f2b5bbf69acf1658c083b12.tar.gz
zig-8b8e57c670132d615f2b5bbf69acf1658c083b12.zip
std.meta.TrailerFlags: include in std tests
Previously, TrailerFlags was unreferenced in std, so its tests were never run. Also, fix the use of `default_value` whose type was changed in f4a249325e8e3741a6294462ae37a79cb9089c56 (#10766).
Diffstat (limited to 'lib/std/meta.zig')
-rw-r--r--lib/std/meta.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig
index e6ce746f19..0de51bfa68 100644
--- a/lib/std/meta.zig
+++ b/lib/std/meta.zig
@@ -10,6 +10,10 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags;
const Type = std.builtin.Type;
+test "std.meta.TrailerFlags" {
+ _ = TrailerFlags;
+}
+
pub fn tagName(v: anytype) []const u8 {
const T = @TypeOf(v);
switch (@typeInfo(T)) {