2021-06-13 14:06:11 -05:00
|
|
|
// build-fail
|
2020-09-28 15:10:38 -05:00
|
|
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
2021-06-13 13:19:39 -05:00
|
|
|
// needs-llvm-components: arm
|
|
|
|
#![feature(cmse_nonsecure_entry, no_core, lang_items)]
|
|
|
|
#![no_core]
|
|
|
|
#[lang="sized"]
|
|
|
|
trait Sized { }
|
|
|
|
#[lang="copy"]
|
|
|
|
trait Copy { }
|
2022-03-06 01:51:10 -06:00
|
|
|
impl Copy for u32 {}
|
2020-09-28 15:10:38 -05:00
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
#[cmse_nonsecure_entry]
|
2021-06-13 13:19:39 -05:00
|
|
|
pub extern "C" fn entry_function(_: u32, _: u32, _: u32, _: u32, e: u32) -> u32 {
|
|
|
|
e
|
2020-09-28 15:10:38 -05:00
|
|
|
}
|