rtic/ui/single/locals-cfg.rs
Henrik Tjäder 79b62797f5 Update the test suite to use mod instead of const
Changes MSRV to 1.42, failing tests updated to match 1.42.
2020-09-25 14:29:34 +00:00

50 lines
757 B
Rust

#![no_main]
#[rtic::app(device = lm3s6965)]
mod APP {
#[init]
fn init(_: init::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
#[idle]
fn idle(_: idle::Context) -> ! {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
loop {}
}
#[task(binds = SVCall)]
fn svcall(_: svcall::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
#[task(binds = UART0)]
fn uart0(_: uart0::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
#[task]
fn foo(_: foo::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
extern "C" {
fn UART1();
}
}