1 // ignore-windows pretty-printers are not loaded
4 // min-gdb-version: 8.1
6 // === GDB TESTS ==================================================================================
10 // gdb-command:print r
11 // gdb-check:[...]$1 = Rc(strong=2, weak=1) = {value = 42, strong = 2, weak = 1}
12 // gdb-command:print a
13 // gdb-check:[...]$2 = Arc(strong=2, weak=1) = {value = 42, strong = 2, weak = 1}
16 // === LLDB TESTS ==================================================================================
20 // lldb-command:print r
21 // lldb-check:[...]$0 = strong=2, weak=1 { value = 42 }
22 // lldb-command:print a
23 // lldb-check:[...]$1 = strong=2, weak=1 { data = 42 }
30 let r1 = Rc::clone(&r);
31 let w1 = Rc::downgrade(&r);
34 let a1 = Arc::clone(&a);
35 let w2 = Arc::downgrade(&a);