summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-29485.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-29485.rs')
-rw-r--r--src/test/ui/issues/issue-29485.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-29485.rs b/src/test/ui/issues/issue-29485.rs
new file mode 100644
index 000000000..8d58ee6d9
--- /dev/null
+++ b/src/test/ui/issues/issue-29485.rs
@@ -0,0 +1,19 @@
+// run-pass
+#![allow(unused_attributes)]
+// aux-build:issue-29485.rs
+// needs-unwind
+// ignore-emscripten no threads
+
+#[feature(recover)]
+
+extern crate a;
+
+fn main() {
+ let _ = std::thread::spawn(move || {
+ a::f(&mut a::X(0), g);
+ }).join();
+}
+
+fn g() {
+ panic!();
+}