| ... | @@ -5,7 +5,7 @@ pub const FailingAllocator = @import("testing/failing_allocator.zig").FailingAll | ... | @@ -5,7 +5,7 @@ pub const FailingAllocator = @import("testing/failing_allocator.zig").FailingAll |
| 5 | | 5 | |
| 6 | /// This should only be used in temporary test programs. | 6 | /// This should only be used in temporary test programs. |
| 7 | pub const allocator = &allocator_instance.allocator; | 7 | pub const allocator = &allocator_instance.allocator; |
| 8 | pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{}) = undefined; | 8 | pub var allocator_instance = std.heap.GeneralPurposeAllocator(.{}){}; |
| 9 | | 9 | |
| 10 | pub const failing_allocator = &failing_allocator_instance.allocator; | 10 | pub const failing_allocator = &failing_allocator_instance.allocator; |
| 11 | pub var failing_allocator_instance = FailingAllocator.init(&base_allocator_instance.allocator, 0); | 11 | pub var failing_allocator_instance = FailingAllocator.init(&base_allocator_instance.allocator, 0); |