aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm-3.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-19 13:35:49 -0700
committerGraydon Hoare <[email protected]>2011-04-19 13:35:49 -0700
commitd2bd07dcb02783063375b6c8532fceaf9fa9d50f (patch)
treea253b5eadb140d14bc99d1456e316ce1e210a6be /src/test/run-pass/task-comm-3.rs
parentrustc: Allow glue to be emitted even for scalar types; this is necessary to s... (diff)
downloadrust-d2bd07dcb02783063375b6c8532fceaf9fa9d50f.tar.xz
rust-d2bd07dcb02783063375b6c8532fceaf9fa9d50f.zip
Remove effect system from src.
Diffstat (limited to 'src/test/run-pass/task-comm-3.rs')
-rw-r--r--src/test/run-pass/task-comm-3.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/task-comm-3.rs b/src/test/run-pass/task-comm-3.rs
index b172a099..71255721 100644
--- a/src/test/run-pass/task-comm-3.rs
+++ b/src/test/run-pass/task-comm-3.rs
@@ -1,13 +1,13 @@
// xfail-boot
// xfail-stage0
-impure fn main() -> () {
+fn main() -> () {
log "===== WITHOUT THREADS =====";
test00(false);
log "====== WITH THREADS ======";
test00(true);
}
-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) {
@@ -18,7 +18,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 = 16;
let int number_of_messages = 4;