2022-07-17 21:54:10 -04:00
|
|
|
//@ignore-target-windows: No libc on Windows
|
2020-04-05 14:55:57 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let rw = std::cell::UnsafeCell::new(libc::PTHREAD_RWLOCK_INITIALIZER);
|
|
|
|
unsafe {
|
2022-07-11 11:44:55 +00:00
|
|
|
libc::pthread_rwlock_unlock(rw.get()); //~ ERROR: was not locked
|
2020-04-05 14:55:57 -05:00
|
|
|
}
|
|
|
|
}
|