aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2020-01-08 08:36:39 +0100
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2020-01-08 08:36:39 +0100
commit3a887e98acc78473692bee070ce33451b1d3c136 (patch)
tree6857d11cc1dd6719a4ffd8416ea9d2cf225ffbed
parentfda8b742a1a6e72740e3a9512378efe5a82b5487 (diff)
downloadcortex-m-3a887e98acc78473692bee070ce33451b1d3c136.tar.gz
cortex-m-3a887e98acc78473692bee070ce33451b1d3c136.tar.zst
cortex-m-3a887e98acc78473692bee070ce33451b1d3c136.zip
Added test for double attribute
-rw-r--r--cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs b/cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs
new file mode 100644
index 0000000..9005209
--- /dev/null
+++ b/cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs
@@ -0,0 +1,13 @@
+#![no_main]
+#![no_std]
+
+extern crate cortex_m_rt;
+extern crate panic_halt;
+
+use cortex_m_rt::{entry, exception};
+
+#[exception]
+#[entry] //~ ERROR this attribute is not allowed on a function controlled by cortex-m-rt
+fn SVCall() -> ! {
+ loop {}
+}