2011-05-23 21:29:45 -05:00
|
|
|
// xfail-stage0
|
|
|
|
// -*- rust -*-
|
|
|
|
|
|
|
|
fn main() {
|
2011-06-15 20:16:17 -05:00
|
|
|
spawn child(10, 20, 30, 40, 50, 60, 70, 80, 90);
|
2011-05-23 21:29:45 -05:00
|
|
|
}
|
|
|
|
|
2011-05-26 20:00:33 -05:00
|
|
|
fn child(int i1,
|
|
|
|
int i2,
|
|
|
|
int i3,
|
|
|
|
int i4,
|
|
|
|
int i5,
|
|
|
|
int i6,
|
|
|
|
int i7,
|
|
|
|
int i8,
|
2011-07-13 17:44:09 -05:00
|
|
|
int i9)
|
2011-05-26 20:00:33 -05:00
|
|
|
{
|
|
|
|
log_err i1;
|
|
|
|
log_err i2;
|
|
|
|
log_err i3;
|
|
|
|
log_err i4;
|
|
|
|
log_err i5;
|
|
|
|
log_err i6;
|
|
|
|
log_err i7;
|
|
|
|
log_err i8;
|
|
|
|
log_err i9;
|
2011-06-15 20:16:17 -05:00
|
|
|
assert(i1 == 10);
|
|
|
|
assert(i2 == 20);
|
|
|
|
assert(i3 == 30);
|
|
|
|
assert(i4 == 40);
|
|
|
|
assert(i5 == 50);
|
|
|
|
assert(i6 == 60);
|
|
|
|
assert(i7 == 70);
|
|
|
|
assert(i8 == 80);
|
|
|
|
assert(i9 == 90);
|
2011-05-23 21:29:45 -05:00
|
|
|
}
|
2011-05-26 20:00:33 -05:00
|
|
|
|
|
|
|
// Local Variables:
|
|
|
|
// mode: rust;
|
|
|
|
// fill-column: 78;
|
|
|
|
// indent-tabs-mode: nil
|
|
|
|
// c-basic-offset: 4
|
|
|
|
// buffer-file-coding-system: utf-8-unix
|
2011-06-15 14:01:19 -05:00
|
|
|
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
|
2011-05-26 20:00:33 -05:00
|
|
|
// End:
|