From 91dda2c24ef245939c4ef0248380aa05583e3e30 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 7 Aug 2020 09:46:47 -0400 Subject: [PATCH] Only test function-arguments-naked.rs on x86_64 We need to use inline assembly, which is inherently platform-specific. --- src/test/debuginfo/function-arguments-naked.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/debuginfo/function-arguments-naked.rs b/src/test/debuginfo/function-arguments-naked.rs index f8e6253448a3..f6919d6f7f77 100644 --- a/src/test/debuginfo/function-arguments-naked.rs +++ b/src/test/debuginfo/function-arguments-naked.rs @@ -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 }