2012-07-29 18:00:55 -05:00
|
|
|
use std;
|
|
|
|
import std::bitv::*;
|
|
|
|
|
|
|
|
fn bitv_test() -> bool {
|
|
|
|
let v1 = ~bitv(31, false);
|
|
|
|
let v2 = ~bitv(31, true);
|
|
|
|
v1.union(v2);
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-07-30 14:04:02 -05:00
|
|
|
do iter::repeat(10000) || {bitv_test()};
|
2012-07-29 18:00:55 -05:00
|
|
|
}
|