1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
10 // gdb-check:$1 = false
11 // gdb-command:continue
13 // gdb-command:print x
14 // gdb-check:$2 = false
15 // gdb-command:continue
17 // gdb-command:print x
18 // gdb-check:$3 = 1000
19 // gdb-command:continue
21 // gdb-command:print x
23 // gdb-command:continue
25 // gdb-command:print x
26 // gdb-check:$5 = true
27 // gdb-command:continue
29 // gdb-command:print x
30 // gdb-check:$6 = false
31 // gdb-command:continue
34 // === LLDB TESTS ==================================================================================
38 // lldb-command:print x
39 // lldbg-check:[...]$0 = false
40 // lldbr-check:(bool) x = false
41 // lldb-command:continue
43 // lldb-command:print x
44 // lldbg-check:[...]$1 = false
45 // lldbr-check:(bool) x = false
46 // lldb-command:continue
48 // lldb-command:print x
49 // lldbg-check:[...]$2 = 1000
50 // lldbr-check:(isize) x = 1000
51 // lldb-command:continue
53 // lldb-command:print x
54 // lldbg-check:[...]$3 = 2.5
55 // lldbr-check:(f64) x = 2.5
56 // lldb-command:continue
58 // lldb-command:print x
59 // lldbg-check:[...]$4 = true
60 // lldbr-check:(bool) x = true
61 // lldb-command:continue
63 // lldb-command:print x
64 // lldbg-check:[...]$5 = false
65 // lldbr-check:(bool) x = false
66 // lldb-command:continue
68 #![feature(omit_gdb_pretty_printer_section)]
69 #![omit_gdb_pretty_printer_section]
78 let closure = |x: isize| {