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:
Aaron Hill 2020-08-07 09:46:47 -04:00
parent bbcacddef6
commit 91dda2c24e
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -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
}