| author | |
| committer | |
| log | abe672956ed037077b23ac6aa29df3dd99795539 |
| tree | 0bd56436befbded9a26ccf6c3d59229f5c59835d |
| parent | bf1d83482b581e49499e545cc625155c1043ef0c |
| signature |
1 files changed, 4 insertions(+), 0 deletions(-)
lib/std/heap.zig+4| ... | ... | @@ -915,6 +915,10 @@ pub fn testAllocator(base_allocator: *mem.Allocator) !void { |
| 915 | 915 | testing.expect(slice.len == 10); |
| 916 | 916 | |
| 917 | 917 | allocator.free(slice); |
| 918 | ||
| 919 | const zero_bit_ptr = try allocator.create(u0); | |
| 920 | zero_bit_ptr.* = 0; | |
| 921 | allocator.destroy(zero_bit_ptr); | |
| 918 | 922 | } |
| 919 | 923 | |
| 920 | 924 | pub fn testAllocatorAligned(base_allocator: *mem.Allocator, comptime alignment: u29) !void { |