1
Fork 0

Convert tests to use bare-fn spawn

Issue #1022
This commit is contained in:
Brian Anderson 2011-10-13 15:37:07 -07:00
parent 4341e50e3a
commit ac671c3172
56 changed files with 214 additions and 214 deletions

View file

@ -10,16 +10,14 @@ fn test_cont() { let i = 0; while i < 1 { i += 1; let x: @int = cont; } }
fn test_ret() { let x: @int = ret; }
fn test_fail() {
fn f() { std::task::unsupervise(); let x: @int = fail; }
let g = f;
std::task::spawn(g);
fn# f(&&_i: ()) { std::task::unsupervise(); let x: @int = fail; }
std::task::spawn2((), f);
}
fn test_fail_indirect() {
fn f() -> ! { fail; }
fn g() { std::task::unsupervise(); let x: @int = f(); }
let h = g;
std::task::spawn(h);
fn# g(&&_i: ()) { std::task::unsupervise(); let x: @int = f(); }
std::task::spawn2((), g);
}
fn main() {