1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![allow(dead_assignment)]
13 pub fn main() { test00(); }
18 let (tx, rx) = channel();
19 let mut tx0 = tx.clone();
20 let mut tx1 = tx.clone();
21 let mut tx2 = tx.clone();
22 let mut tx3 = tx.clone();
23 let number_of_messages: int = 1000;
25 while i < number_of_messages {
33 while i < number_of_messages {
44 assert_eq!(sum, 1998000);
45 // assert (sum == 4 * ((number_of_messages *
46 // (number_of_messages - 1)) / 2));