rust/src/test/run-pass/vec-self-append.rs

13 lines
191 B
Rust
Raw Normal View History

// xfail-stage0
fn main()
{
// Make sure we properly handle repeated self-appends.
let vec[int] a = [0];
auto i = 20;
while (i > 0) {
a += a;
i -= 1;
}
}