|
16 | 16 | // its numerical value.
|
17 | 17 |
|
18 | 18 | // compile-flags:-g
|
| 19 | + |
| 20 | +// === GDB TESTS =================================================================================== |
| 21 | + |
19 | 22 | // gdb-command:rbreak zzz
|
20 | 23 | // gdb-command:run
|
21 | 24 | // gdb-command:finish
|
|
61 | 64 | // gdb-command:print *f64_ref
|
62 | 65 | // gdb-check:$14 = 3.5
|
63 | 66 |
|
| 67 | + |
| 68 | +// === LLDB TESTS ================================================================================== |
| 69 | + |
| 70 | +// lldb-command:type format add -f decimal char |
| 71 | +// lldb-command:type format add -f decimal 'unsigned char' |
| 72 | +// lldb-command:run |
| 73 | + |
| 74 | +// lldb-command:print *bool_ref |
| 75 | +// lldb-check:[...]$0 = true |
| 76 | + |
| 77 | +// lldb-command:print *int_ref |
| 78 | +// lldb-check:[...]$1 = -1 |
| 79 | + |
| 80 | +// LLDB can't handle 32bit chars yet |
| 81 | +// d ebugger:print *char_ref |
| 82 | +// c heck:[...]$x = 97 |
| 83 | + |
| 84 | +// lldb-command:print *i8_ref |
| 85 | +// lldb-check:[...]$2 = 68 |
| 86 | + |
| 87 | +// lldb-command:print *i16_ref |
| 88 | +// lldb-check:[...]$3 = -16 |
| 89 | + |
| 90 | +// lldb-command:print *i32_ref |
| 91 | +// lldb-check:[...]$4 = -32 |
| 92 | + |
| 93 | +// lldb-command:print *i64_ref |
| 94 | +// lldb-check:[...]$5 = -64 |
| 95 | + |
| 96 | +// lldb-command:print *uint_ref |
| 97 | +// lldb-check:[...]$6 = 1 |
| 98 | + |
| 99 | +// lldb-command:print *u8_ref |
| 100 | +// lldb-check:[...]$7 = 100 |
| 101 | + |
| 102 | +// lldb-command:print *u16_ref |
| 103 | +// lldb-check:[...]$8 = 16 |
| 104 | + |
| 105 | +// lldb-command:print *u32_ref |
| 106 | +// lldb-check:[...]$9 = 32 |
| 107 | + |
| 108 | +// lldb-command:print *u64_ref |
| 109 | +// lldb-check:[...]$10 = 64 |
| 110 | + |
| 111 | +// lldb-command:print *f32_ref |
| 112 | +// lldb-check:[...]$11 = 2.5 |
| 113 | + |
| 114 | +// lldb-command:print *f64_ref |
| 115 | +// lldb-check:[...]$12 = 3.5 |
| 116 | + |
64 | 117 | #![allow(unused_variable)]
|
65 | 118 |
|
66 | 119 | use std::gc::{Gc, GC};
|
@@ -107,7 +160,8 @@ fn main() {
|
107 | 160 |
|
108 | 161 | let f64_box: Gc<f64> = box(GC) 3.5;
|
109 | 162 | let f64_ref: &f64 = f64_box;
|
110 |
| - zzz(); |
| 163 | + |
| 164 | + zzz(); // #break |
111 | 165 | }
|
112 | 166 |
|
113 | 167 | fn zzz() {()}
|
0 commit comments