testsuite: De-record pretty tests
This commit is contained in:
parent
58ec84a098
commit
3b36708ca7
|
@ -16,8 +16,10 @@ fn test1() { let val = @0; { } *val; }
|
||||||
|
|
||||||
fn test2() -> int { let val = @0; { } *val }
|
fn test2() -> int { let val = @0; { } *val }
|
||||||
|
|
||||||
|
struct S { mut eax: int }
|
||||||
|
|
||||||
fn test3() {
|
fn test3() {
|
||||||
let regs = @{mut eax: 0};
|
let regs = @S {mut eax: 0};
|
||||||
match true { true => { } _ => { } }
|
match true { true => { } _ => { } }
|
||||||
(*regs).eax = 1;
|
(*regs).eax = 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,11 +8,17 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// 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
|
// pp-exact
|
||||||
type thing = {x: int, y: int,};
|
struct Thing {
|
||||||
|
x: int,
|
||||||
|
y: int,
|
||||||
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let sth = {x: 0, y: 1,};
|
let sth = Thing{x: 0, y: 1,};
|
||||||
let sth2 = {y: 9, ..sth};
|
let sth2 = Thing{y: 9 , ..sth};
|
||||||
assert sth.x + sth2.y == 9;
|
assert sth.x + sth2.y == 9;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue