aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/task-not-declared.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cfail/task-not-declared.rs')
-rw-r--r--tests/cfail/task-not-declared.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/cfail/task-not-declared.rs b/tests/cfail/task-not-declared.rs
new file mode 100644
index 00000000..3e6d87c4
--- /dev/null
+++ b/tests/cfail/task-not-declared.rs
@@ -0,0 +1,14 @@
+#![no_main]
+#![no_std]
+
+extern crate lm3s6965;
+extern crate panic_halt;
+extern crate rtfm;
+
+use rtfm::app;
+
+#[app(device = lm3s6965)]
+const APP: () = {
+ #[init(spawn = [X])] //~ ERROR this task has NOT been declared
+ fn init() {}
+};