mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
23 lines
609 B
Rust
23 lines
609 B
Rust
//@ add-core-stubs
|
|
//@ 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]
|
|
|
|
extern crate minicore;
|
|
use minicore::*;
|
|
|
|
#[no_mangle]
|
|
pub extern "cmse-nonsecure-entry" fn entry_function(input: u32) -> u32 {
|
|
//~^ ERROR [E0570]
|
|
input
|
|
}
|
|
|
|
fn main() {}
|