mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-06-13 12:14:55 -04:00
4307436b99
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
9 lines
125 B
Zig
9 lines
125 B
Zig
fn f(buf: []u8) void {
|
|
var ptr = &buf[@sizeOf(u32)];
|
|
}
|
|
|
|
test "crash" {
|
|
var buf: [4096]u8 = undefined;
|
|
f(&buf);
|
|
}
|