Sema: validate bitcast operand type
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
pub export fn entry() void {
|
||||
var y = @intToPtr([*]align(4) u8, 5);
|
||||
_ = y;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :2:39: error: pointer type '[*]align(4) u8' requires aligned address
|
||||
Reference in New Issue
Block a user