From 98d2af9d73da56910c8bb6cb662fbc4d609a704a Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 7 Jul 2021 22:50:59 +0200 Subject: Fixing tests --- examples/t-cfg.rs | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 examples/t-cfg.rs (limited to 'examples/t-cfg.rs') diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs deleted file mode 100644 index ef591c4..0000000 --- a/examples/t-cfg.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! [compile-pass] check that `#[cfg]` attributes are respected - -#![no_main] -#![no_std] - -use panic_semihosting as _; - -#[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0])] -mod app { - #[resources] - struct Resources { - #[cfg(never)] - #[init(0)] - foo: u32, - } - - #[init] - fn init(_: init::Context) -> (init::LateResources, init::Monotonics) { - #[cfg(never)] - static mut BAR: u32 = 0; - - (init::LateResources {}, init::Monotonics()) - } - - #[idle] - fn idle(_: idle::Context) -> ! { - #[cfg(never)] - static mut BAR: u32 = 0; - - loop { - cortex_m::asm::nop(); - } - } - - #[task(resources = [foo])] - fn foo(_: foo::Context) { - #[cfg(never)] - static mut BAR: u32 = 0; - } - - #[task(priority = 3, resources = [foo])] - fn bar(_: bar::Context) { - #[cfg(never)] - static mut BAR: u32 = 0; - } - - #[cfg(never)] - #[task] - fn quux(_: quux::Context) {} -} -- cgit v1.2.3