We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbcacdd commit 91dda2cCopy full SHA for 91dda2c
src/test/debuginfo/function-arguments-naked.rs
@@ -3,6 +3,9 @@
3
// We have to ignore android because of this issue:
4
// https://github.com/rust-lang/rust/issues/74847
5
// ignore-android
6
+//
7
+// We need to use inline assembly, so just use one platform
8
+// only-x86_64
9
10
// compile-flags:-g
11
@@ -24,6 +27,7 @@
24
27
// lldb-command:continue
25
28
26
29
30
+#![feature(asm)]
31
#![feature(naked_functions)]
32
#![feature(omit_gdb_pretty_printer_section)]
33
#![omit_gdb_pretty_printer_section]
@@ -34,5 +38,5 @@ fn main() {
34
38
35
39
#[naked]
36
40
fn naked(x: usize, y: usize) {
37
- // #break
41
+ unsafe { asm!("ret"); } // #break
42
}
0 commit comments