1 // Testing the display of RwLock and RwLockReadGuard in cdb.
4 // min-cdb-version: 10.0.18317.1001
7 // === CDB TESTS ==================================================================================
12 // cdb-check:l [Type: std::sync::rwlock::RwLock<i32>]
13 // cdb-check: [...] poison [Type: std::sync::poison::Flag]
14 // cdb-check: [...] data : 0 [Type: core::cell::UnsafeCell<i32>]
17 // cdb-check:r [Type: std::sync::rwlock::RwLockReadGuard<i32>]
18 // cdb-check: [...] lock : [...] [Type: std::sync::rwlock::RwLock<i32> *]
20 // cdb-command:dx r.lock->data,d
21 // cdb-check:r.lock->data,d : 0 [Type: core::cell::UnsafeCell<i32>]
22 // cdb-check: [<Raw View>] [Type: core::cell::UnsafeCell<i32>]
24 #[allow(unused_variables)]
26 use std::sync::RwLock;
30 let l = RwLock::new(0);
31 let r = l.read().unwrap();