zig/test/behavior/bugs/4954.zig
Andrew Kelley 4307436b99 move behavior tests from test/stage1/ to test/
And fix test cases to make them pass. This is in preparation for
starting to pass behavior tests with self-hosted.
2021-04-29 15:54:04 -07:00

9 lines
125 B
Zig

fn f(buf: []u8) void {
var ptr = &buf[@sizeOf(u32)];
}
test "crash" {
var buf: [4096]u8 = undefined;
f(&buf);
}