Skip to content

Commit 8ebb044

Browse files
Add compile-fail test
1 parent 774ad31 commit 8ebb044

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
#[entry]
10+
fn foo() -> ! {
11+
loop {}
12+
}
13+
14+
#[exception]
15+
fn SecureFault() {}
16+
//~^ ERROR no variant or associated item named `SecureFault`

0 commit comments

Comments
 (0)