]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.rs
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / test / ui / cmse-nonsecure / cmse-nonsecure-entry / params-on-stack.rs
1 // build-fail
2 // compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
3 // needs-llvm-components: arm
4 #![feature(cmse_nonsecure_entry, no_core, lang_items)]
5 #![no_core]
6 #[lang="sized"]
7 trait Sized { }
8 #[lang="copy"]
9 trait Copy { }
10
11 #[no_mangle]
12 #[cmse_nonsecure_entry]
13 pub extern "C" fn entry_function(_: u32, _: u32, _: u32, _: u32, e: u32) -> u32 {
14     e
15 }