3 // min-gdb-version: 8.1
5 // === GDB TESTS ==================================================================================
10 // gdb-check:[...]$1 = Rc(strong=2, weak=1) = {value = 42, strong = 2, weak = 1}
11 // gdb-command:print a
12 // gdb-check:[...]$2 = Arc(strong=2, weak=1) = {value = 42, strong = 2, weak = 1}
15 // === LLDB TESTS ==================================================================================
19 // lldb-command:print r
20 // lldb-check:[...]$0 = strong=2, weak=1 { value = 42 }
21 // lldb-command:print a
22 // lldb-check:[...]$1 = strong=2, weak=1 { data = 42 }
29 let r1 = Rc::clone(&r);
30 let w1 = Rc::downgrade(&r);
33 let a1 = Arc::clone(&a);
34 let w2 = Arc::downgrade(&a);