diff options
Diffstat (limited to 'src/test/ui/panic-runtime/unwind-unique.rs')
-rw-r--r-- | src/test/ui/panic-runtime/unwind-unique.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/panic-runtime/unwind-unique.rs b/src/test/ui/panic-runtime/unwind-unique.rs new file mode 100644 index 000000000..d66e39110 --- /dev/null +++ b/src/test/ui/panic-runtime/unwind-unique.rs @@ -0,0 +1,12 @@ +// run-fail +// error-pattern:explicit panic +// ignore-emscripten no processes + +fn failfn() { + panic!(); +} + +fn main() { + Box::new(0); + failfn(); +} |