2 // compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
3 // needs-llvm-components: arm
4 #![feature(abi_c_cmse_nonsecure_call, no_core, lang_items, intrinsics)]
12 extern "rust-intrinsic" {
13 pub fn transmute<T, U>(e: T) -> U;
17 pub fn test(a: u32, b: u32, c: u32, d: u32, e: u32) -> u32 {
18 let non_secure_function = unsafe {
21 extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u32, u32) -> u32>
26 non_secure_function(a, b, c, d, e)