aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/ptrFromInt_with_misaligned_address.zig
blob: c45e998d825e937c4f90993802afbaea08641658 (plain)
1
2
3
4
5
6
7
8
9
10
pub export fn entry() void {
    var y = @ptrFromInt([*]align(4) u8, 5);
    _ = y;
}

// error
// backend=stage2
// target=native
//
// :2:41: error: pointer type '[*]align(4) u8' requires aligned address