testsuite: De-record pretty tests

This commit is contained in:
Tim Chevalier 2013-01-28 18:55:29 -08:00
parent 58ec84a098
commit 3b36708ca7
2 changed files with 12 additions and 4 deletions

View File

@ -16,8 +16,10 @@ fn test1() { let val = @0; { } *val; }
fn test2() -> int { let val = @0; { } *val }
struct S { mut eax: int }
fn test3() {
let regs = @{mut eax: 0};
let regs = @S {mut eax: 0};
match true { true => { } _ => { } }
(*regs).eax = 1;
}

View File

@ -8,11 +8,17 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// NOTE this is a pretty-printer bug that I fixed, but it's
// not in the snapshot yet. After a new snapshot, can un-xfail
// xfail-pretty
// pp-exact
type thing = {x: int, y: int,};
struct Thing {
x: int,
y: int,
}
fn main() {
let sth = {x: 0, y: 1,};
let sth2 = {y: 9, ..sth};
let sth = Thing{x: 0, y: 1,};
let sth2 = Thing{y: 9 , ..sth};
assert sth.x + sth2.y == 9;
}