1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
10 // gdb-check:$1 = false
11 // gdb-command:print y
12 // gdb-check:$2 = true
13 // gdb-command:continue
15 // gdb-command:print x
17 // gdb-command:print y
18 // gdb-check:$4 = true
19 // gdb-command:continue
21 // gdb-command:print x
22 // gdb-check:$5 = 10.5
23 // gdb-command:print y
25 // gdb-command:continue
28 // === LLDB TESTS ==================================================================================
32 // lldb-command:print x
33 // lldbg-check:[...]$0 = false
34 // lldbr-check:(bool) x = false
35 // lldb-command:print y
36 // lldbg-check:[...]$1 = true
37 // lldbr-check:(bool) y = true
38 // lldb-command:continue
40 // lldb-command:print x
41 // lldbg-check:[...]$2 = 10
42 // lldbr-check:(i32) x = 10
43 // lldb-command:print y
44 // lldbg-check:[...]$3 = true
45 // lldbr-check:(bool) y = true
46 // lldb-command:continue
48 // lldb-command:print x
49 // lldbg-check:[...]$4 = 10.5
50 // lldbr-check:(f64) x = 10.5
51 // lldb-command:print y
52 // lldbg-check:[...]$5 = 20
53 // lldbr-check:(i32) y = 20
54 // lldb-command:continue
57 #![feature(omit_gdb_pretty_printer_section)]
58 #![omit_gdb_pretty_printer_section]
60 fn a_function(x: bool, y: bool) {
77 a_function(false, true);