]> git.proxmox.com Git - rustc.git/blob - src/test/ui/cmse-nonsecure-entry/wrong-abi.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / cmse-nonsecure-entry / wrong-abi.rs
1 // compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
2 // only-thumbv8m.main-none-eabi
3 #![feature(cmse_nonsecure_entry)]
4 #![no_std]
5
6 #[no_mangle]
7 #[cmse_nonsecure_entry]
8 pub fn entry_function(a: u32, b: u32, c: u32, d: u32) -> u32 { //~ ERROR [E0776]
9 a + b + c + d
10 }