test: Add a test case for vec growth

This commit is contained in:
Patrick Walton 2011-04-28 18:23:39 -07:00
parent cd8cf44d1d
commit 96d4577376

View File

@ -0,0 +1,15 @@
// xfail-stage0
fn main() {
auto v = vec(1);
v += vec(2);
v += vec(3);
v += vec(4);
v += vec(5);
check (v.(0) == 1);
check (v.(1) == 2);
check (v.(2) == 3);
check (v.(3) == 4);
check (v.(4) == 5);
}