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
21 // gdb-command:print x
22 // gdb-check:$5 = -2.5
23 // gdb-command:print y
25 // gdb-command:continue
27 // gdb-command:print x
28 // gdb-check:$7 = -2.5
29 // gdb-command:print y
31 // gdb-command:continue
34 // === LLDB TESTS ==================================================================================
38 // lldb-command:print x
39 // lldbg-check:[...]$0 = -1
40 // lldbr-check:(i32) x = -1
41 // lldb-command:print y
42 // lldbg-check:[...]$1 = 1
43 // lldbr-check:(i32) y = 1
44 // lldb-command:continue
46 // lldb-command:print x
47 // lldbg-check:[...]$2 = -1
48 // lldbr-check:(i32) x = -1
49 // lldb-command:print y
50 // lldbg-check:[...]$3 = 2.5
51 // lldbr-check:(f64) y = 2.5
52 // lldb-command:continue
54 // lldb-command:print x
55 // lldbg-check:[...]$4 = -2.5
56 // lldbr-check:(f64) x = -2.5
57 // lldb-command:print y
58 // lldbg-check:[...]$5 = 1
59 // lldbr-check:(i32) y = 1
60 // lldb-command:continue
62 // lldb-command:print x
63 // lldbg-check:[...]$6 = -2.5
64 // lldbr-check:(f64) x = -2.5
65 // lldb-command:print y
66 // lldbg-check:[...]$7 = 2.5
67 // lldbr-check:(f64) y = 2.5
68 // lldb-command:continue
71 #![feature(omit_gdb_pretty_printer_section)]
72 #![omit_gdb_pretty_printer_section]
74 fn outer<TA: Clone>(a: TA) {
76 inner(a.clone(), 2.5f64);
78 fn inner<TX, TY>(x: TX, y: TY) {