add cfail tests

This commit is contained in:
Jorge Aparicio 2017-07-18 15:14:39 -05:00
parent e9788ff9b6
commit 1f1cf84ab4
14 changed files with 438 additions and 2 deletions

18
tests/cfail/init.rs Normal file
View file

@ -0,0 +1,18 @@
#![deny(warnings)]
#![feature(proc_macro)]
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
use rtfm::app;
app! { //~ error mismatched types
device: stm32f103xx,
}
// ERROR `init` must have signature `fn (init::Peripherals)`
fn init() {}
fn idle() -> ! {
loop {}
}