diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-04-21 20:13:15 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-05-01 20:49:25 +0200 |
| commit | d2fb62f729de3ad24132b69298e17193ac334df4 (patch) | |
| tree | 9c1e56f6056b2cef796a33a9607ddb039e70a7c6 /tests/cpass/binds.rs | |
| parent | 1b4b006bab7ee05e403a4fc48ae751d037f95b1a (diff) | |
update compile-pass tests
Diffstat (limited to 'tests/cpass/binds.rs')
| -rw-r--r-- | tests/cpass/binds.rs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/cpass/binds.rs b/tests/cpass/binds.rs index 7cb9174..897e083 100644 --- a/tests/cpass/binds.rs +++ b/tests/cpass/binds.rs @@ -1,4 +1,6 @@ //! Check that `binds` works as advertised +#![deny(unsafe_code)] +#![deny(warnings)] #![no_main] #![no_std] @@ -6,18 +8,20 @@ extern crate lm3s6965; extern crate panic_halt; extern crate rtfm; -use rtfm::app; - -#[app(device = lm3s6965)] +#[rtfm::app(device = lm3s6965)] const APP: () = { #[init] - fn init() {} + fn init(_: init::Context) {} #[exception(binds = SVCall)] - fn foo() {} + fn foo(c: foo::Context) { + foo_trampoline(c) + } #[interrupt(binds = UART0)] - fn bar() {} + fn bar(c: bar::Context) { + bar_trampoline(c) + } }; #[allow(dead_code)] |
