Add naked_functions_rustic_abi
feature gate
This commit is contained in:
parent
19cab6b878
commit
8866af3884
17 changed files with 142 additions and 107 deletions
|
@ -122,18 +122,6 @@ unsafe extern "C" fn invalid_may_unwind() {
|
|||
//~^ ERROR the `may_unwind` option cannot be used with `naked_asm!`
|
||||
}
|
||||
|
||||
#[naked]
|
||||
pub unsafe fn default_abi() {
|
||||
//~^ WARN Rust ABI is unsupported in naked functions
|
||||
naked_asm!("");
|
||||
}
|
||||
|
||||
#[naked]
|
||||
pub unsafe fn rust_abi() {
|
||||
//~^ WARN Rust ABI is unsupported in naked functions
|
||||
naked_asm!("");
|
||||
}
|
||||
|
||||
#[naked]
|
||||
pub extern "C" fn valid_a<T>() -> T {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue