mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Add a test written by jdm that tests repeated vector self appending.
This commit is contained in:
committed by
Brian Anderson
parent
8ad7f3b56b
commit
ec80918865
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user