test: Add a test case for linearize_ty_params() and shapes
This commit is contained in:
parent
670b60f027
commit
10ea787772
25
src/test/run-pass/log-linearized.rs
Normal file
25
src/test/run-pass/log-linearized.rs
Normal file
@ -0,0 +1,25 @@
|
||||
// xfail-test
|
||||
|
||||
// Tests that shapes respect linearize_ty_params().
|
||||
|
||||
tag option<T> {
|
||||
none;
|
||||
some(T);
|
||||
}
|
||||
|
||||
type smallintmap<T> = @{mutable v: [mutable option<T>]};
|
||||
|
||||
fn mk<@T>() -> smallintmap<T> {
|
||||
let v: [mutable option<T>] = [mutable];
|
||||
ret @{mutable v: v};
|
||||
}
|
||||
|
||||
fn f<@T,@U>() {
|
||||
let sim = mk::<U>();
|
||||
log_err sim;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
f::<int,int>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user