|
1 |
| -// only-cdb |
2 | 1 | // compile-flags:-g
|
3 | 2 |
|
4 | 3 | // Tests the visualizations for `NonZero{I,U}{8,16,32,64,128,size}`, `Wrapping<T>` and
|
|
153 | 152 | // cdb-check:a_usize : 0x400 [Type: core::sync::atomic::AtomicUsize]
|
154 | 153 | // cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicUsize]
|
155 | 154 |
|
| 155 | + |
| 156 | +// === GDB TESTS =================================================================================== |
| 157 | + |
| 158 | +// gdb-command:run |
| 159 | + |
| 160 | +// gdb-command:print nz_i8 |
| 161 | +// gdbg-check:[...]$1 = 11 |
| 162 | + |
| 163 | +// gdb-command:print nz_i16 |
| 164 | +// gdbg-check:[...]$2 = 22 |
| 165 | + |
| 166 | +// gdb-command:print nz_i32 |
| 167 | +// gdbg-check:[...]$3 = 33 |
| 168 | + |
| 169 | +// gdb-command:print nz_i64 |
| 170 | +// gdbg-check:[...]$4 = 44 |
| 171 | + |
| 172 | +// gdb-command:print nz_i128 |
| 173 | +// gdbg-check:[...]$5 = 55 |
| 174 | + |
| 175 | +// gdb-command:print nz_isize |
| 176 | +// gdbg-check:[...]$6 = 66 |
| 177 | + |
| 178 | +// gdb-command:print nz_u8 |
| 179 | +// gdbg-check:[...]$7 = 77 |
| 180 | + |
| 181 | +// gdb-command:print nz_u16 |
| 182 | +// gdbg-check:[...]$8 = 88 |
| 183 | + |
| 184 | +// gdb-command:print nz_u32 |
| 185 | +// gdbg-check:[...]$9 = 99 |
| 186 | + |
| 187 | +// gdb-command:print nz_u64 |
| 188 | +// gdbg-check:[...]$10 = 100 |
| 189 | + |
| 190 | +// gdb-command:print nz_u128 |
| 191 | +// gdbg-check:[...]$11 = 111 |
| 192 | + |
| 193 | +// gdb-command:print nz_usize |
| 194 | +// gdbg-check:[...]$12 = 122 |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | +// === LLDB TESTS ================================================================================== |
| 199 | + |
| 200 | +// lldb-command:run |
| 201 | + |
| 202 | +// lldb-command:print nz_i8 |
| 203 | +// lldb-check:[...]$0 = 11 |
| 204 | + |
| 205 | +// lldb-command:print nz_i16 |
| 206 | +// lldb-check:[...]$1 = 22 |
| 207 | + |
| 208 | +// lldb-command:print nz_i32 |
| 209 | +// lldb-check:[...]$2 = 33 |
| 210 | + |
| 211 | +// lldb-command:print nz_i64 |
| 212 | +// lldb-check:[...]$3 = 44 |
| 213 | + |
| 214 | +// lldb-command:print nz_i128 |
| 215 | +// lldb-check:[...]$4 = 55 |
| 216 | + |
| 217 | +// lldb-command:print nz_isize |
| 218 | +// lldb-check:[...]$5 = 66 |
| 219 | + |
| 220 | +// lldb-command:print nz_u8 |
| 221 | +// lldb-check:[...]$6 = 77 |
| 222 | + |
| 223 | +// lldb-command:print nz_u16 |
| 224 | +// lldb-check:[...]$7 = 88 |
| 225 | + |
| 226 | +// lldb-command:print nz_u32 |
| 227 | +// lldb-check:[...]$8 = 99 |
| 228 | + |
| 229 | +// lldb-command:print nz_u64 |
| 230 | +// lldb-check:[...]$9 = 100 |
| 231 | + |
| 232 | +// lldb-command:print nz_u128 |
| 233 | +// lldb-check:[...]$10 = 111 |
| 234 | + |
| 235 | +// lldb-command:print nz_usize |
| 236 | +// lldb-check:[...]$11 = 122 |
| 237 | + |
| 238 | + |
156 | 239 | use std::num::*;
|
157 | 240 | use std::sync::atomic::*;
|
158 | 241 |
|
|
0 commit comments