()
| 108 | |
| 109 | #[test] |
| 110 | fn unwind_nested() { |
| 111 | assert_eq!(check_and_reset(), false); |
| 112 | assert_no_alloc(|| { |
| 113 | let r = catch_unwind(|| { |
| 114 | assert_no_alloc(|| { |
| 115 | panic!(); |
| 116 | }); |
| 117 | }); |
| 118 | assert!(r.is_err()); |
| 119 | |
| 120 | check_and_reset(); // unwinding might have allocated memory; we don't care about that. |
| 121 | do_alloc(); |
| 122 | assert_eq!(check_and_reset(), true); |
| 123 | }); |
| 124 | } |
| 125 | |
| 126 | #[test] |
| 127 | fn unwind_nested2() { |
nothing calls this directly
no test coverage detected