Skip to content

Commit b69150e

Browse files
committed
Remove test casting from *usize to *void that should not have passed
1 parent 8d3998e commit b69150e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/stage1/behavior/cast.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -459,12 +459,6 @@ fn incrementVoidPtrArray(array: ?*c_void, len: usize) void {
459459
}
460460
}
461461

462-
test "*usize to *void" {
463-
var i = @as(usize, 0);
464-
var v = @ptrCast(*void, &i);
465-
v.* = {};
466-
}
467-
468462
test "compile time int to ptr of function" {
469463
foobar(FUNCTION_CONSTANT);
470464
}

0 commit comments

Comments
 (0)