Add a test written by jdm that tests repeated vector self appending.

This commit is contained in:
Michael Sullivan 2011-06-24 16:23:11 -07:00 committed by Brian Anderson
parent 8ad7f3b56b
commit ec80918865

View File

@ -0,0 +1,12 @@
// 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;
}
}