summary refs log tree commit diff
path: root/src/test/ui/cmse-nonsecure-entry/params-on-stack.rs
blob: 553d3a8cb0be7966dc2ee857a0c0b5f26e4d6631 (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
// only-thumbv8m.main-none-eabi
#![feature(cmse_nonsecure_entry)]
#![no_std]

#[no_mangle]
#[cmse_nonsecure_entry]
pub extern "C" fn entry_function(a: u32, b: u32, c: u32, d: u32, e: u32) -> u32 { //~ ERROR
    a + b + c + d + e
}