zig/test/cases/large_slices.zig
Alex Rønne Petersen 4dba253cd2
test: pull tests in test/cases/llvm/ up to test/cases/
There is nothing inherently LLVM-specific about any of these.
2025-09-16 23:39:29 +02:00

10 lines
210 B
Zig

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
//