Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/kernel/fatal: add volatile to prevent compiler optimization
Initialization of local variable 'illegal' can't be optimized, or the program will jump to the memory contains random value which causes the unexpected behavior. Add volatile to local variable 'illegal' to prevent compiler optimization. Signed-off-by: Jim Shu <cwshu@andestech.com>
- Loading branch information