1 // min-lldb-version: 310
4 // === GDB TESTS ===================================================================================
9 // gdb-check:$1 = false
10 // gdb-command:print y
11 // gdb-check:$2 = true
12 // gdb-command:continue
14 // gdb-command:print x
16 // gdb-command:print y
17 // gdb-check:$4 = true
18 // gdb-command:continue
20 // gdb-command:print x
21 // gdb-check:$5 = 10.5
22 // gdb-command:print y
24 // gdb-command:continue
26 // gdb-command:print x
27 // gdb-check:$7 = 10.5
28 // gdb-command:print y
30 // gdb-command:continue
32 // gdb-command:print x
33 // gdb-check:$9 = 11.5
34 // gdb-command:print y
36 // gdb-command:continue
38 // === LLDB TESTS ==================================================================================
42 // lldb-command:print x
43 // lldbg-check:[...]$0 = false
44 // lldbr-check:(bool) x = false
45 // lldb-command:print y
46 // lldbg-check:[...]$1 = true
47 // lldbr-check:(bool) y = true
48 // lldb-command:continue
50 // lldb-command:print x
51 // lldbg-check:[...]$2 = 10
52 // lldbr-check:(i32) x = 10
53 // lldb-command:print y
54 // lldbg-check:[...]$3 = true
55 // lldbr-check:(bool) y = true
56 // lldb-command:continue
58 // lldb-command:print x
59 // lldbg-check:[...]$4 = 10.5
60 // lldbr-check:(f64) x = 10.5
61 // lldb-command:print y
62 // lldbg-check:[...]$5 = 20
63 // lldbr-check:(i32) y = 20
64 // lldb-command:continue
66 // lldb-command:print x
67 // lldbg-check:[...]$6 = 10.5
68 // lldbr-check:(f64) x = 10.5
69 // lldb-command:print y
70 // lldbg-check:[...]$7 = 20
71 // lldbr-check:(i32) y = 20
72 // lldb-command:continue
74 // lldb-command:print x
75 // lldbg-check:[...]$8 = 11.5
76 // lldbr-check:(f64) x = 11.5
77 // lldb-command:print y
78 // lldbg-check:[...]$9 = 20
79 // lldbr-check:(i32) y = 20
80 // lldb-command:continue
82 #![feature(omit_gdb_pretty_printer_section)]
83 #![omit_gdb_pretty_printer_section]