Skip to content
Permalink
Browse files

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 <npitre@baylibre.com>
  • Loading branch information...
Nicolas Pitre authored and MaureenHelm committed Aug 6, 2019
1 parent 16d8ce5 commit af1510d3bbdd9d26dccf159496939b118a69d154
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit af1510d

Please sign in to comment.
You can’t perform that action at this time.