mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 16:12:33 +00:00
14 lines
299 B
Zig
14 lines
299 B
Zig
const std = @import("std");
|
|
|
|
// Stress test zerofill layout
|
|
var buffer: [0x1000000]u64 = undefined;
|
|
|
|
pub fn main() anyerror!void {
|
|
buffer[0x10] = 1;
|
|
try std.io.getStdOut().writer().print("{d}, {d}, {d}\n", .{
|
|
buffer[0],
|
|
buffer[0x10],
|
|
buffer[0x1000000 - 1],
|
|
});
|
|
}
|