]> git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/rwlock-read.rs
Update unsuspicious file list
[rustc.git] / src / test / debuginfo / rwlock-read.rs
1 // Testing the display of RwLock and RwLockReadGuard in cdb.
2
3 // cdb-only
4 // min-cdb-version: 10.0.18317.1001
5 // compile-flags:-g
6
7 // === CDB TESTS ==================================================================================
8 //
9 // cdb-command:g
10 //
11 // cdb-command:dx l
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>]
15 //
16 // cdb-command:dx r
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 *]
20
21 #[allow(unused_variables)]
22
23 use std::sync::RwLock;
24
25 fn main()
26 {
27 let l = RwLock::new(0);
28 let r = l.read().unwrap();
29 zzz(); // #break
30 }
31
32 fn zzz() {}