mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 10:58:58 +00: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);
|
|
}
|