//! [compile-pass] Check code generation of `spawn` #![deny(unsafe_code)] #![deny(warnings)] #![no_main] #![no_std] use panic_semihosting as _; #[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { use cortex_m_semihosting::debug; #[shared] struct Shared {} #[local] struct Local {} #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { let _: Result<(), ()> = foo::spawn(); let _: Result<(), u32> = bar::spawn(0); let _: Result<(), (u32, u32)> = baz::spawn(0, 1); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator (Shared {}, Local {}, init::Monotonics()) } #[idle] fn idle(_: idle::Context) -> ! { let _: Result<(), ()> = foo::spawn(); let _: Result<(), u32> = bar::spawn(0); let _: Result<(), (u32, u32)> = baz::spawn(0, 1); loop { cortex_m::asm::nop(); } } #[task(binds = SVCall)] fn svcall(_: svcall::Context) { let _: Result<(), ()> = foo::spawn(); let _: Result<(), u32> = bar::spawn(0); let _: Result<(), (u32, u32)> = baz::spawn(0, 1); } #[task(binds = UART0)] fn uart0(_: uart0::Context) { let _: Result<(), ()> = foo::spawn(); let _: Result<(), u32> = bar::spawn(0); let _: Result<(), (u32, u32)> = baz::spawn(0, 1); } #[task] fn foo(_: foo::Context) { let _: Result<(), ()> = foo::spawn(); let _: Result<(), u32> = bar::spawn(0); let _: Result<(), (u32, u32)> = baz::spawn(0, 1); } #[task] fn bar(_: bar::Context, _x: u32) {} #[task] fn baz(_: baz::Context, _x: u32, _y: u32) {} } rg/x/crypto-0.24.0'>dependabot/go_modules/golang.org/x/crypto-0.24.0 Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/plugin/health (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2020-10-28Update Project Lead's term (#4164)Gravatar Yong Tang 1-1/+1
2020-10-28docs: move Also See to See Also (#4245)Gravatar Miek Gieben 20-20/+20
2020-10-28Fix golint warnings (#4241)Gravatar ZouYu 4-21/+21