summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.rs
blob: 39b41dac41f773aa86de0243068e64e8189f4205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// build-fail
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
// needs-llvm-components: arm
#![feature(cmse_nonsecure_entry, no_core, lang_items)]
#![no_core]
#[lang="sized"]
trait Sized { }
#[lang="copy"]
trait Copy { }
impl Copy for u32 {}

#[no_mangle]
#[cmse_nonsecure_entry]
pub extern "C" fn entry_function(_: u32, _: u32, _: u32, _: u32, e: u32) -> u32 {
    e
}