Only test function-arguments-naked.rs on x86_64
We need to use inline assembly, which is inherently platform-specific.
This commit is contained in:
parent
bbcacddef6
commit
91dda2c24e
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,9 @@
|
|||
// We have to ignore android because of this issue:
|
||||
// https://github.com/rust-lang/rust/issues/74847
|
||||
// ignore-android
|
||||
//
|
||||
// We need to use inline assembly, so just use one platform
|
||||
// only-x86_64
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
|
@ -24,6 +27,7 @@
|
|||
// lldb-command:continue
|
||||
|
||||
|
||||
#![feature(asm)]
|
||||
#![feature(naked_functions)]
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
@ -34,5 +38,5 @@ fn main() {
|
|||
|
||||
#[naked]
|
||||
fn naked(x: usize, y: usize) {
|
||||
// #break
|
||||
unsafe { asm!("ret"); } // #break
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue