]>
git.proxmox.com Git - rustc.git/blob - tests/debuginfo/vec.rs
1 // min-lldb-version: 310
2 // ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
6 // === GDB TESTS ===================================================================================
10 // gdbg-check:$1 = {1, 2, 3}
11 // gdbr-check:$1 = [1, 2, 3]
12 // gdb-command:print vec::VECT
13 // gdbg-check:$2 = {4, 5, 6}
14 // gdbr-check:$2 = [4, 5, 6]
17 // === LLDB TESTS ==================================================================================
20 // lldb-command:print a
21 // lldbg-check:[...]$0 = { [0] = 1 [1] = 2 [2] = 3 }
22 // lldbr-check:([i32; 3]) a = { [0] = 1 [1] = 2 [2] = 3 }
24 #![allow(unused_variables)]
25 #![feature(omit_gdb_pretty_printer_section)]
26 #![omit_gdb_pretty_printer_section]
28 static mut VECT
: [i32; 3] = [1, 2, 3];