don't pass zero-length @memset to the backend

This commit is contained in:
xdBronch
2025-10-03 19:37:51 -04:00
committed by Alex Rønne Petersen
parent 7de67e6802
commit cfb5350ed4
2 changed files with 6 additions and 1 deletions

View File

@@ -175,3 +175,8 @@ test "zero keys with @memset" {
try expect(!Keys.keys.left);
try expect(!Keys.keys.right);
}
test "@memset with zero-length array" {
var array: [0]usize = undefined;
@memset(&array, 0);
}