aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/task-comm.rs')
-rw-r--r--src/test/run-pass/task-comm.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/run-pass/task-comm.rs b/src/test/run-pass/task-comm.rs
index 04751e37..0a91b98a 100644
--- a/src/test/run-pass/task-comm.rs
+++ b/src/test/run-pass/task-comm.rs
@@ -1,7 +1,7 @@
// xfail-boot
// xfail-stage0
-impure fn main() -> () {
+fn main() -> () {
test00(true);
// test01();
test02();
@@ -11,7 +11,7 @@ impure fn main() -> () {
test06();
}
-impure fn test00_start(chan[int] ch, int message, int count) {
+fn test00_start(chan[int] ch, int message, int count) {
log "Starting test00_start";
let int i = 0;
while (i < count) {
@@ -22,7 +22,7 @@ impure fn test00_start(chan[int] ch, int message, int count) {
log "Ending test00_start";
}
-impure fn test00(bool is_multithreaded) {
+fn test00(bool is_multithreaded) {
let int number_of_tasks = 1;
let int number_of_messages = 4;
log "Creating tasks";
@@ -62,14 +62,14 @@ impure fn test00(bool is_multithreaded) {
(number_of_tasks * number_of_tasks + number_of_tasks) / 2);
}
-impure fn test01() {
+fn test01() {
let port[int] p = port();
log "Reading from a port that is never written to.";
let int value <- p;
log value;
}
-impure fn test02() {
+fn test02() {
let port[int] p = port();
let chan[int] c = chan(p);
log "Writing to a local task channel.";
@@ -113,7 +113,7 @@ fn test04() {
log "Finishing up.";
}
-impure fn test05_start(chan[int] ch) {
+fn test05_start(chan[int] ch) {
ch <| 10;
ch <| 20;
ch <| 30;
@@ -121,7 +121,7 @@ impure fn test05_start(chan[int] ch) {
ch <| 30;
}
-impure fn test05() {
+fn test05() {
let port[int] po = port();
let chan[int] ch = chan(po);
spawn thread test05_start(ch);