3 // ignore-windows target requires uwtable
4 // compile-flags: -C panic=unwind -C force-unwind-tables=n
6 use std::panic::{self, AssertUnwindSafe};
8 struct Increase<'a>(&'a mut u8);
10 impl Drop for Increase<'_> {
22 fn increase(count: &mut u8) {
23 let _increase = Increase(count);
29 assert!(panic::catch_unwind(AssertUnwindSafe(
31 || increase(&mut count)