]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/captured-fields-2.rs
3 // === GDB TESTS ===================================================================================
6 // gdb-command:print my_ref__my_field1
8 // gdb-command:continue
9 // gdb-command:print my_var__my_field2
11 // gdb-command:continue
13 // === LLDB TESTS ==================================================================================
16 // lldb-command:print my_ref__my_field1
17 // lldbg-check:(unsigned int) $0 = 11
18 // lldb-command:continue
19 // lldb-command:print my_var__my_field2
20 // lldbg-check:(unsigned int) $1 = 22
21 // lldb-command:continue
23 #![feature(capture_disjoint_fields)]
32 let mut my_var
= MyStruct
{
36 let my_ref
= &mut my_var
;
39 let a
= my_ref
.my_field1
;
47 let a
= my_var
.my_field2
;