// entering the catch_unwind.
//
// run-pass
-// ignore-wasm no panic support
-// ignore-emscripten no panic support
+#![feature(cfg_panic)]
use std::panic::catch_unwind;
}
fn main() {
+ #[cfg(panic = "unwind")]
let _ = catch_unwind(|| {
let _guard = Guard::default();
panic!();