1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
10 // gdb-command:print x
12 // gdb-command:continue
14 // gdb-command:print x
16 // gdb-command:continue
19 // gdb-command:print x
21 // gdb-command:continue
23 // gdb-command:print x
25 // gdb-command:continue
28 // gdb-command:print x
30 // gdb-command:continue
32 // gdb-command:print x
34 // gdb-command:continue
37 // gdb-command:print x
38 // gdb-check:$7 = 1000000
39 // gdb-command:continue
42 // === LLDB TESTS ==================================================================================
47 // lldb-command:print x
48 // lldbg-check:[...]$0 = 1
49 // lldbr-check:(i32) x = 1
50 // lldb-command:continue
52 // lldb-command:print x
53 // lldbg-check:[...]$1 = -1
54 // lldbr-check:(i32) x = -1
55 // lldb-command:continue
58 // lldb-command:print x
59 // lldbg-check:[...]$2 = 2
60 // lldbr-check:(i32) x = 2
61 // lldb-command:continue
63 // lldb-command:print x
64 // lldbg-check:[...]$3 = -2
65 // lldbr-check:(i32) x = -2
66 // lldb-command:continue
69 // lldb-command:print x
70 // lldbg-check:[...]$4 = 3
71 // lldbr-check:(i32) x = 3
72 // lldb-command:continue
74 // lldb-command:print x
75 // lldbg-check:[...]$5 = -3
76 // lldbr-check:(i32) x = -3
77 // lldb-command:continue
80 // lldb-command:print x
81 // lldbg-check:[...]$6 = 1000000
82 // lldbr-check:(i32) x = 1000000
83 // lldb-command:continue
85 #![feature(omit_gdb_pretty_printer_section)]
86 #![omit_gdb_pretty_printer_section]
90 let range = [1, 2, 3];
92 let x = 1000000; // wan meeeljen doollaars!