1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
11 // gdb-command:print y
13 // gdb-command:continue
15 // gdb-command:print *x
17 // gdb-command:print *y
19 // gdb-command:continue
22 // === LLDB TESTS ==================================================================================
26 // lldb-command:print x
27 // lldbg-check:[...]$0 = 0.5
28 // lldbr-check:(f64) x = 0.5
29 // lldb-command:print y
30 // lldbg-check:[...]$1 = 10
31 // lldbr-check:(i32) y = 10
32 // lldb-command:continue
34 // lldb-command:print *x
35 // lldbg-check:[...]$2 = 29
36 // lldbr-check:(i32) *x = 29
37 // lldb-command:print *y
38 // lldbg-check:[...]$3 = 110
39 // lldbr-check:(i32) *y = 110
40 // lldb-command:continue
42 #![feature(omit_gdb_pretty_printer_section)]
43 #![omit_gdb_pretty_printer_section]
45 fn some_generic_fun<T1, T2>(a: T1, b: T2) -> (T2, T1) {
47 let closure = |x, y| {
56 some_generic_fun(0.5f64, 10);
57 some_generic_fun(&29, Box::new(110));