]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/rwlock-read.rs
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: [...] data : NonNull([...]: 0) [Type: core::ptr::non_null::NonNull<i32>]
19 // cdb-check: [...] inner_lock : [...] [Type: std::sys::windows::locks::rwlock::RwLock *]
21 #[allow(unused_variables)]
23 use std
::sync
::RwLock
;
27 let l
= RwLock
::new(0);
28 let r
= l
.read().unwrap();