Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
large_slices.zig
pretty
plain
permalink
blame
history
•
9 lines
•
210 B
1
pub fn main() void {
2
const large_slice = @as([*]const u8, @ptrFromInt(1))[0..(0xffffffffffffffff >> 3)];
3
_ = large_slice;
4
}
5
6
// compile
7
// backend=selfhosted,llvm
8
// target=x86_64-linux,x86_64-macos
9
//