diff options
Diffstat (limited to 'src/host/fields.zig')
| -rw-r--r-- | src/host/fields.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/fields.zig b/src/host/fields.zig index 215f176..ba8fc03 100644 --- a/src/host/fields.zig +++ b/src/host/fields.zig @@ -100,7 +100,7 @@ test "fields format, parse and compare by kind" { const S = extern struct { mood: enum(u32) { calm, angry = 5 } = .calm, x: i16 = -3, speed: f32 = 1.5, on: bool = false }; var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); defer arena.deinit(); - const layout = try @import("memory.zig").Layout.copy(arena.allocator(), abi.layout.of(S, .forbidden)); + const layout = try @import("memory.zig").Layout.copy(arena.allocator(), abi.layout.of(S, .state)); var s: S = .{}; const bytes = std.mem.asBytes(&s); try std.testing.expect(matches(layout.find("x").?, bytes, "-3")); |
