Skip to content

Commit ec30c71

Browse files
committed
Add a regression test for issue #374 (XFAILed)
1 parent fb76c25 commit ec30c71

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
// xfail-stage0
2+
// xfail-stage1
3+
// xfail-stage2
4+
5+
// Regression test for issue #374
6+
17
use std;
28
import std::option;
39
import std::option::none;
410

511
tag sty {
6-
ty_nil;
12+
ty_nil;
713
}
814

915
type raw_t = rec(sty struct,
@@ -12,10 +18,10 @@ type raw_t = rec(sty struct,
1218

1319
fn mk_raw_ty(sty st, &option::t[str] cname) -> raw_t {
1420
ret rec(struct=st,
15-
cname=cname,
16-
hash=0u);
21+
cname=cname,
22+
hash=0u);
1723
}
1824

1925
fn main() {
2026
mk_raw_ty(ty_nil, none[str]);
21-
}
27+
}

0 commit comments

Comments
 (0)