From af1510d3bbdd9d26dccf159496939b118a69d154 Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Tue, 6 Aug 2019 16:24:13 -0400 Subject: [PATCH] tests: fatal: make sure the illegal insn occupies a full word ... and is properly aligned. This may make a difference on 64-bit targets. Signed-off-by: Nicolas Pitre --- tests/kernel/fatal/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kernel/fatal/src/main.c b/tests/kernel/fatal/src/main.c index d32463e350d..e54a564b2e2 100644 --- a/tests/kernel/fatal/src/main.c +++ b/tests/kernel/fatal/src/main.c @@ -63,7 +63,7 @@ void alt_thread1(void) * and xtensa */ { - int illegal = 0; + long illegal = 0; ((void(*)(void))&illegal)(); } #endif