test: Add a test case for derived-tydescs-before-dynamic-allocas

This commit is contained in:
Patrick Walton 2011-06-18 18:44:21 -07:00
parent 4f13879218
commit 7bb6733f2c

View File

@ -0,0 +1,17 @@
// xfail-stage0
tag option[T] {
some(T);
none;
}
type r[T] = rec(mutable (option[T])[] v);
fn f[T]() -> T[] {
ret ~[];
}
fn main() {
let r[int] r = rec(mutable v=~[]);
r.v = f();
}