zig/test/link/bss/main.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],
});
}