]>
git.proxmox.com Git - rustc.git/blob - tests/run-make/coverage/panic_unwind.rs
1 #![allow(unused_assignments)]
2 // expect-exit-status-101
4 fn might_panic(should_panic
: bool
) {
6 println
!("panicking...");
9 println
!("Don't Panic");
13 fn main() -> Result
<(), u8> {
14 let mut countdown
= 10;
18 } else if countdown
< 5 {
27 // 1. Compare this program and its coverage results to those of the similar tests `abort.rs` and
28 // `try_error_result.rs`.
29 // 2. Since the `panic_unwind.rs` test is allowed to unwind, it is also allowed to execute the
30 // normal program exit cleanup, including writing out the current values of the coverage