]> git.lizzy.rs Git - rust.git/blob - src/test/debuginfo/function-arguments-naked.rs
Merge branch 'master' into remove-in-place-alloc
[rust.git] / src / test / debuginfo / function-arguments-naked.rs
1 // min-lldb-version: 310
2
3 // We have to ignore android because of this issue:
4 // https://github.com/rust-lang/rust/issues/74847
5 // ignore-android
6
7 // compile-flags:-g
8
9 // === GDB TESTS ===================================================================================
10
11 // gdb-command:run
12
13 // gdb-command:info args
14 // gdb-check:No arguments.
15 // gdb-command:continue
16
17 // === LLDB TESTS ==================================================================================
18
19 // lldb-command:run
20
21 // lldb-command:frame variable
22 // lldbg-check:(unsigned long) = 111 (unsigned long) = 222
23 // lldbr-check:(unsigned long) = 111 (unsigned long) = 222
24 // lldb-command:continue
25
26
27 #![feature(naked_functions)]
28 #![feature(omit_gdb_pretty_printer_section)]
29 #![omit_gdb_pretty_printer_section]
30
31 fn main() {
32     naked(111, 222);
33 }
34
35 #[naked]
36 fn naked(x: usize, y: usize) {
37     zzz(); // #break
38 }
39
40 fn zzz() { () }