Skip to content

Commit 3a887e9

Browse files
committed
Added test for double attribute
1 parent fda8b74 commit 3a887e9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#![no_main]
2+
#![no_std]
3+
4+
extern crate cortex_m_rt;
5+
extern crate panic_halt;
6+
7+
use cortex_m_rt::{entry, exception};
8+
9+
#[exception]
10+
#[entry] //~ ERROR this attribute is not allowed on a function controlled by cortex-m-rt
11+
fn SVCall() -> ! {
12+
loop {}
13+
}

0 commit comments

Comments
 (0)