mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
e122cd6312
It's simpler and it takes advantage of `std.Build.addAnonymousDependency`, which has a number of benefits, including concurrenc and preventing extra zig-cache and zig-out directories being created. 4 tests are ported over as an example.
14 lines
312 B
Zig
14 lines
312 B
Zig
const std = @import("std");
|
|
|
|
// Stress test zerofill layout
|
|
var buffer: [0x1000000]u64 = [1]u64{0} ** 0x1000000;
|
|
|
|
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],
|
|
});
|
|
}
|