diff --git a/tests/core/testing/test_core_testing.odin b/tests/core/testing/test_core_testing.odin index a323971dc..ed3a29173 100644 --- a/tests/core/testing/test_core_testing.odin +++ b/tests/core/testing/test_core_testing.odin @@ -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) +}