aboutsummaryrefslogtreecommitdiff
path: root/test/cases/large_slices.zig
blob: a7d19174fdf7c1e911d64566ce9ac1a31f90c74d (plain)
1
2
3
4
5
6
7
8
9
pub fn main() void {
    const large_slice = @as([*]const u8, @ptrFromInt(1))[0..(0xffffffffffffffff >> 3)];
    _ = large_slice;
}

// compile
// backend=selfhosted,llvm
// target=x86_64-linux,x86_64-macos
//