aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/cfg-static.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-06-13 23:56:59 +0200
committerJorge Aparicio <jorge@japaric.io>2019-06-13 23:56:59 +0200
commit81275bfa4f41e2066770087f3a33cad4227eab41 (patch)
treec779a68e7cecf4c2613c7593376f980cea5dbc05 /tests/cfail/cfg-static.rs
parentfafeeb27270ef24fc3852711c6032f65aa7dbcc0 (diff)
rtfm-syntax refactor + heterogeneous multi-core support
Diffstat (limited to 'tests/cfail/cfg-static.rs')
-rw-r--r--tests/cfail/cfg-static.rs57
1 files changed, 0 insertions, 57 deletions
diff --git a/tests/cfail/cfg-static.rs b/tests/cfail/cfg-static.rs
deleted file mode 100644
index 91465a1..0000000
--- a/tests/cfail/cfg-static.rs
+++ /dev/null
@@ -1,57 +0,0 @@
-#![no_main]
-#![no_std]
-
-extern crate lm3s6965;
-extern crate panic_halt;
-extern crate rtfm;
-
-use rtfm::app;
-
-#[app(device = lm3s6965)]
-const APP: () = {
- #[init]
- fn init(_: init::Context) {
- #[cfg(never)]
- static mut FOO: u32 = 0;
-
- FOO; //~ ERROR cannot find value `FOO` in this scope
- }
-
- #[idle]
- fn idle(_: idle::Context) -> ! {
- #[cfg(never)]
- static mut FOO: u32 = 0;
-
- FOO; //~ ERROR cannot find value `FOO` in this scope
-
- loop {}
- }
-
- #[exception]
- fn SVCall(_: SVCall::Context) {
- #[cfg(never)]
- static mut FOO: u32 = 0;
-
- FOO; //~ ERROR cannot find value `FOO` in this scope
- }
-
- #[interrupt]
- fn UART0(_: UART0::Context) {
- #[cfg(never)]
- static mut FOO: u32 = 0;
-
- FOO; //~ ERROR cannot find value `FOO` in this scope
- }
-
- #[task]
- fn foo(_: foo::Context) {
- #[cfg(never)]
- static mut FOO: u32 = 0;
-
- FOO; //~ ERROR cannot find value `FOO` in this scope
- }
-
- extern "C" {
- fn UART1();
- }
-};