Add invalid array bound trap test

This commit is contained in:
FourteenBrush
2026-04-13 14:51:51 +02:00
committed by GitHub
parent 742cd5bc77
commit cce574cfc4

View File

@@ -50,3 +50,9 @@ test_expected_signal :: proc(t: ^testing.T) {
testing.expect_signal(t, libc.SIGILL)
libc.raise(libc.SIGILL)
}
@test
test_array_bounds_trap_signal :: proc(t: ^testing.T) {
testing.expect_signal(t, libc.SIGILL)
_ = make([]u8, -1)
}