2011-03-25 12:19:20 -07:00
|
|
|
// xfail-stage0
|
2011-05-03 18:13:51 -07:00
|
|
|
// xfail-stage1
|
|
|
|
// xfail-stage2
|
2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-05-12 21:45:29 +02:00
|
|
|
// error-pattern:1 == 2
|
2010-06-23 21:03:09 -07:00
|
|
|
|
|
|
|
fn child() {
|
2011-05-02 17:47:24 -07:00
|
|
|
assert (1 == 2);
|
2010-06-23 21:03:09 -07:00
|
|
|
}
|
|
|
|
|
2011-04-19 13:35:49 -07:00
|
|
|
fn main() {
|
2010-06-23 21:03:09 -07:00
|
|
|
let port[int] p = port();
|
|
|
|
spawn child();
|
|
|
|
let int x;
|
|
|
|
x <- p;
|
|
|
|
}
|