diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-08-07 09:46:47 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-08-07 09:46:47 -0400 |
| commit | 91dda2c24ef245939c4ef0248380aa05583e3e30 (patch) | |
| tree | 5e5c4307e07c81020fc29c03714ff0c46706cc49 /src/test | |
| parent | bbcacddef691464e5abe373f95849670298c63a7 (diff) | |
| download | rust-91dda2c24ef245939c4ef0248380aa05583e3e30.tar.gz rust-91dda2c24ef245939c4ef0248380aa05583e3e30.zip | |
Only test function-arguments-naked.rs on x86_64
We need to use inline assembly, which is inherently platform-specific.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/debuginfo/function-arguments-naked.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/debuginfo/function-arguments-naked.rs b/src/test/debuginfo/function-arguments-naked.rs index f8e6253448a..f6919d6f7f7 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 } |
