diff --git a/tests/stack_overflow.rs b/tests/stack_overflow.rs index 71ad12d6..845644b4 100644 --- a/tests/stack_overflow.rs +++ b/tests/stack_overflow.rs @@ -23,6 +23,7 @@ pub extern "C" fn _start() -> ! { #[allow(unconditional_recursion)] fn stack_overflow() { stack_overflow(); // for each recursion, the return address is pushed + volatile::Volatile::new(0).read(); // prevent tail recursion optimizations } lazy_static! {