From cce574cfc4e6e092707370fd1d48efd21f21a893 Mon Sep 17 00:00:00 2001 From: FourteenBrush <74827262+FourteenBrush@users.noreply.github.com> Date: Mon, 13 Apr 2026 14:51:51 +0200 Subject: [PATCH] Add invalid array bound trap test --- tests/core/testing/test_core_testing.odin | 6 ++++++ 1 file changed, 6 insertions(+) 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) +}