summaryrefslogtreecommitdiffstats
path: root/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.rs
blob: 3783e2794021f5e53a76b7160c6884835f578326 (plain)
1
2
3
4
5
6
7
8
9
10
// ignore-thumbv8m.main-none-eabi
#![feature(cmse_nonsecure_entry)]

#[no_mangle]
#[cmse_nonsecure_entry] //~ ERROR [E0775]
pub extern "C" fn entry_function(input: u32) -> u32 {
    input + 6
}

fn main() {}