mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
fix tests/ui/asm/naked-functions.rs for aarch64
This commit is contained in:
@@ -195,13 +195,13 @@ pub extern "C" fn valid_b() {
|
||||
#[forbid(dead_code)]
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn compatible_diagnostic_attributes() {
|
||||
asm!("", options(noreturn, att_syntax));
|
||||
asm!("", options(noreturn, raw));
|
||||
}
|
||||
|
||||
#[deprecated = "test"]
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn compatible_deprecated_attributes() {
|
||||
asm!("", options(noreturn, att_syntax));
|
||||
asm!("", options(noreturn, raw));
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
@@ -222,15 +222,16 @@ pub extern "C" fn valid_b() {
|
||||
#[no_mangle]
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn compatible_ffi_attributes_1() {
|
||||
asm!("", options(noreturn, att_syntax));
|
||||
asm!("", options(noreturn, raw));
|
||||
}
|
||||
|
||||
#[cold]
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn compatible_codegen_attributes() {
|
||||
asm!("", options(noreturn, att_syntax));
|
||||
asm!("", options(noreturn, raw));
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
#[target_feature(enable = "sse2")]
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn compatible_target_feature() {
|
||||
@@ -240,11 +241,11 @@ pub extern "C" fn valid_b() {
|
||||
#[doc = "foo bar baz"]
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn compatible_doc_attributes() {
|
||||
asm!("", options(noreturn, att_syntax));
|
||||
asm!("", options(noreturn, raw));
|
||||
}
|
||||
|
||||
#[linkage = "external"]
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn compatible_linkage() {
|
||||
asm!("", options(noreturn, att_syntax));
|
||||
asm!("", options(noreturn, raw));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user