mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

minicore makes it much easier to add new language items to all of the existing `no_core` tests.
23 lines
821 B
Rust
23 lines
821 B
Rust
//@ add-core-stubs
|
|
//@ compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
|
//@ needs-llvm-components: arm
|
|
#![feature(abi_c_cmse_nonsecure_call, no_core, lang_items)]
|
|
#![no_core]
|
|
|
|
extern crate minicore;
|
|
use minicore::*;
|
|
|
|
#[repr(C, align(16))]
|
|
#[allow(unused)]
|
|
pub struct AlignRelevant(u32);
|
|
|
|
#[no_mangle]
|
|
pub fn test(
|
|
f1: extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u32, x: u32, y: u32), //~ ERROR [E0798]
|
|
f2: extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u16, u16), //~ ERROR [E0798]
|
|
f3: extern "C-cmse-nonsecure-call" fn(u32, u64, u32), //~ ERROR [E0798]
|
|
f4: extern "C-cmse-nonsecure-call" fn(AlignRelevant, u32), //~ ERROR [E0798]
|
|
f5: extern "C-cmse-nonsecure-call" fn([u32; 5]), //~ ERROR [E0798]
|
|
) {
|
|
}
|