Add test case

This commit is contained in:
Scott Mabin 2023-12-31 16:55:46 +00:00
parent 93b64b90ce
commit 2efde24f33

View File

@ -135,3 +135,17 @@ fn executor_task_self_wake_twice() {
] ]
) )
} }
#[test]
fn executor_task_cfg_args() {
// simulate cfg'ing away argument c
#[task]
async fn task1(a: u32, b: u32, #[cfg(any())] c: u32) {
let (_, _) = (a, b);
}
#[task]
async fn task2(a: u32, b: u32, #[cfg(all())] c: u32) {
let (_, _, _) = (a, b, c);
}
}