2025-02-24 09:26:54 +00:00
|
|
|
//@ add-core-stubs
|
2024-08-01 16:30:04 +02:00
|
|
|
//@ revisions: x86 aarch64 thumb7
|
|
|
|
|
//
|
|
|
|
|
//@[x86] compile-flags: --target x86_64-unknown-linux-gnu
|
|
|
|
|
//@[x86] needs-llvm-components: x86
|
|
|
|
|
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
|
|
|
|
|
//@[aarch64] needs-llvm-components: aarch64
|
|
|
|
|
//@[thumb7] compile-flags: --target thumbv7em-none-eabi
|
|
|
|
|
//@[thumb7] needs-llvm-components: arm
|
|
|
|
|
#![feature(no_core, lang_items, rustc_attrs, cmse_nonsecure_entry)]
|
|
|
|
|
#![no_core]
|
|
|
|
|
|
2025-02-24 09:26:54 +00:00
|
|
|
extern crate minicore;
|
|
|
|
|
use minicore::*;
|
2020-09-28 21:10:38 +01:00
|
|
|
|
|
|
|
|
#[no_mangle]
|
2024-07-31 21:04:06 +02:00
|
|
|
pub extern "C-cmse-nonsecure-entry" fn entry_function(input: u32) -> u32 {
|
|
|
|
|
//~^ ERROR [E0570]
|
2024-08-01 16:30:04 +02:00
|
|
|
input
|
2020-09-28 21:10:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|