2025-02-24 09:26:54 +00:00
|
|
|
//@ add-core-stubs
|
2024-07-16 16:35:23 +02:00
|
|
|
//@ compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
|
|
|
|
//@ needs-llvm-components: arm
|
2025-06-06 23:07:41 -07:00
|
|
|
#![feature(abi_cmse_nonsecure_call, no_core, lang_items)]
|
2024-07-16 16:35:23 +02:00
|
|
|
#![no_core]
|
2025-02-24 09:26:54 +00:00
|
|
|
|
|
|
|
|
extern crate minicore;
|
|
|
|
|
use minicore::*;
|
2024-07-16 16:35:23 +02:00
|
|
|
|
|
|
|
|
#[repr(C, align(16))]
|
|
|
|
|
#[allow(unused)]
|
|
|
|
|
pub struct AlignRelevant(u32);
|
|
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
|
pub fn test(
|
2025-06-06 23:07:41 -07:00
|
|
|
f1: extern "cmse-nonsecure-call" fn(u32, u32, u32, u32, x: u32, y: u32), //~ ERROR [E0798]
|
|
|
|
|
f2: extern "cmse-nonsecure-call" fn(u32, u32, u32, u16, u16), //~ ERROR [E0798]
|
|
|
|
|
f3: extern "cmse-nonsecure-call" fn(u32, u64, u32), //~ ERROR [E0798]
|
|
|
|
|
f4: extern "cmse-nonsecure-call" fn(AlignRelevant, u32), //~ ERROR [E0798]
|
|
|
|
|
f5: extern "cmse-nonsecure-call" fn([u32; 5]), //~ ERROR [E0798]
|
2024-07-16 16:35:23 +02:00
|
|
|
) {
|
|
|
|
|
}
|