Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
ptrFromInt_with_misaligned_address.zig
pretty
plain
permalink
blame
history
•
8 lines
•
172 B
1
pub export fn entry() void {
2
var y: [*]align(4) u8 = @ptrFromInt(5);
3
_ = &y;
4
}
5
6
// error
7
//
8
// :2:41: error: pointer type '[*]align(4) u8' requires aligned address