2010-07-15 20:57:21 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
// This is a test for issue #109.
|
2010-07-15 20:57:21 -05:00
|
|
|
use std;
|
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn slice[T](e: vec[T]) {
|
|
|
|
let result: vec[T] = std::vec::alloc[T](1 as uint);
|
2011-06-15 13:19:50 -05:00
|
|
|
log "alloced";
|
|
|
|
result += e;
|
|
|
|
log "appended";
|
2010-07-15 20:57:21 -05:00
|
|
|
}
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn main() { slice[str](["a"]); }
|