]> git.proxmox.com Git - rustc.git/blob - src/test/ui/cmse-nonsecure-entry/params-on-stack.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / cmse-nonsecure-entry / params-on-stack.rs
1 // compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
2 // only-thumbv8m.main-none-eabi
3 #![feature(cmse_nonsecure_entry)]
4 #![no_std]
5
6 #[no_mangle]
7 #[cmse_nonsecure_entry]
8 pub extern "C" fn entry_function(a: u32, b: u32, c: u32, d: u32, e: u32) -> u32 { //~ ERROR
9 a + b + c + d + e
10 }