From 19fcb13d22a56e01fd2fa5d34051196f59c9511b Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 6 Sep 2018 01:24:01 +0200 Subject: relax checks of the signatures of `entry` and the exceptions --- cortex-m-rt/examples/unsafe-exception.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cortex-m-rt/examples/unsafe-exception.rs (limited to 'cortex-m-rt/examples/unsafe-exception.rs') diff --git a/cortex-m-rt/examples/unsafe-exception.rs b/cortex-m-rt/examples/unsafe-exception.rs new file mode 100644 index 0000000..d67f06f --- /dev/null +++ b/cortex-m-rt/examples/unsafe-exception.rs @@ -0,0 +1,16 @@ +#![deny(warnings)] +#![no_main] +#![no_std] + +extern crate cortex_m_rt; +extern crate panic_semihosting; + +use cortex_m_rt::{entry, exception}; + +#[entry] +fn foo() -> ! { + loop {} +} + +#[exception] +unsafe fn SysTick() {} -- cgit v1.2.3