2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-05-12 21:45:29 +02:00
|
|
|
// error-pattern:1 == 2
|
2011-08-10 13:36:57 -07:00
|
|
|
// no-valgrind
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-08-13 15:20:11 -07:00
|
|
|
use std;
|
|
|
|
import std::task;
|
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn child() { assert (1 == 2); }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-08-13 15:20:11 -07:00
|
|
|
fn main() {
|
|
|
|
let p: port[int] = port();
|
|
|
|
task::_spawn(bind child());
|
|
|
|
let x: int; p |> x;
|
|
|
|
}
|