1
Fork 0

Reformat. Issue #855

This commit is contained in:
Brian Anderson 2011-09-02 15:34:58 -07:00
parent b5f9053423
commit 5c49e4f4e9
194 changed files with 5106 additions and 5789 deletions

View file

@ -3,41 +3,21 @@
use std;
fn test_break() {
while true {
let x: @int = break;
}
}
fn test_break() { while true { let x: @int = break; } }
fn test_cont() {
let i = 0;
while i < 1 {
i += 1;
let x: @int = cont;
}
}
fn test_cont() { let i = 0; while i < 1 { i += 1; let x: @int = cont; } }
fn test_ret() {
let x: @int = ret;
}
fn test_ret() { let x: @int = ret; }
fn test_fail() {
fn f() {
std::task::unsupervise();
let x: @int = fail;
}
fn f() { std::task::unsupervise(); let x: @int = fail; }
let g = f;
std::task::spawn(g);
}
fn test_fail_indirect() {
fn f() -> ! {
fail;
}
fn g() {
std::task::unsupervise();
let x: @int = f();
}
fn f() -> ! { fail; }
fn g() { std::task::unsupervise(); let x: @int = f(); }
let h = g;
std::task::spawn(h);
}
@ -48,4 +28,4 @@ fn main() {
test_ret();
test_fail();
test_fail_indirect();
}
}