1 2 3 4 5 6 7
comptime { const ptr: *align(1) i32 = @ptrFromInt(0x1); const aligned: *align(4) i32 = @alignCast(ptr); _ = aligned; } // test_error=pointer address 0x1 is not aligned to 4 bytes