Skip to content

Commit 91dda2c

Browse files
committed
Only test function-arguments-naked.rs on x86_64
We need to use inline assembly, which is inherently platform-specific.
1 parent bbcacdd commit 91dda2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/debuginfo/function-arguments-naked.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// We have to ignore android because of this issue:
44
// https://github.com/rust-lang/rust/issues/74847
55
// ignore-android
6+
//
7+
// We need to use inline assembly, so just use one platform
8+
// only-x86_64
69

710
// compile-flags:-g
811

@@ -24,6 +27,7 @@
2427
// lldb-command:continue
2528

2629

30+
#![feature(asm)]
2731
#![feature(naked_functions)]
2832
#![feature(omit_gdb_pretty_printer_section)]
2933
#![omit_gdb_pretty_printer_section]
@@ -34,5 +38,5 @@ fn main() {
3438

3539
#[naked]
3640
fn naked(x: usize, y: usize) {
37-
// #break
41+
unsafe { asm!("ret"); } // #break
3842
}

0 commit comments

Comments
 (0)