2011-05-23 19:29:45 -07:00
|
|
|
// -*- rust -*-
|
2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2013-05-24 19:35:29 -07:00
|
|
|
use std::task;
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() { task::spawn(|| child((10, 20, 30, 40, 50, 60, 70, 80, 90)) ); }
|
2011-05-23 19:29:45 -07:00
|
|
|
|
2013-05-07 21:33:31 -07:00
|
|
|
fn child(args: (int, int, int, int, int, int, int, int, int)) {
|
2011-10-13 15:37:07 -07:00
|
|
|
let (i1, i2, i3, i4, i5, i6, i7, i8, i9) = args;
|
2013-10-21 13:08:31 -07:00
|
|
|
error!("{}", i1);
|
|
|
|
error!("{}", i2);
|
|
|
|
error!("{}", i3);
|
|
|
|
error!("{}", i4);
|
|
|
|
error!("{}", i5);
|
|
|
|
error!("{}", i6);
|
|
|
|
error!("{}", i7);
|
|
|
|
error!("{}", i8);
|
|
|
|
error!("{}", i9);
|
2013-05-18 22:02:45 -04:00
|
|
|
assert_eq!(i1, 10);
|
|
|
|
assert_eq!(i2, 20);
|
|
|
|
assert_eq!(i3, 30);
|
|
|
|
assert_eq!(i4, 40);
|
|
|
|
assert_eq!(i5, 50);
|
|
|
|
assert_eq!(i6, 60);
|
|
|
|
assert_eq!(i7, 70);
|
|
|
|
assert_eq!(i8, 80);
|
|
|
|
assert_eq!(i9, 90);
|
2011-05-23 19:29:45 -07:00
|
|
|
}
|