about summary refs log tree commit diff
path: root/src/test/ui/threads-sendsync/yield.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/threads-sendsync/yield.rs')
-rw-r--r--src/test/ui/threads-sendsync/yield.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/threads-sendsync/yield.rs b/src/test/ui/threads-sendsync/yield.rs
deleted file mode 100644
index e83ba556078..00000000000
--- a/src/test/ui/threads-sendsync/yield.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// run-pass
-
-#![allow(unused_must_use)]
-#![allow(unused_mut)]
-// ignore-emscripten no threads support
-
-use std::thread;
-
-pub fn main() {
-    let mut result = thread::spawn(child);
-    println!("1");
-    thread::yield_now();
-    println!("2");
-    thread::yield_now();
-    println!("3");
-    result.join();
-}
-
-fn child() {
-    println!("4"); thread::yield_now(); println!("5"); thread::yield_now(); println!("6");
-}