2011-03-25 12:19:20 -07:00
|
|
|
// xfail-stage0
|
2011-05-03 18:13:51 -07:00
|
|
|
// xfail-stage1
|
|
|
|
// xfail-stage2
|
2010-07-25 21:45:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
|
|
|
use std;
|
|
|
|
import std.rand;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let rand.rng r1 = rand.mk_rng();
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
{
|
|
|
|
auto r2 = rand.mk_rng();
|
|
|
|
log r1.next();
|
|
|
|
log r2.next();
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
log r2.next();
|
|
|
|
log r2.next();
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
log r2.next();
|
|
|
|
log r2.next();
|
|
|
|
log r2.next();
|
|
|
|
}
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
}
|