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;
|
2011-05-06 22:13:13 +02:00
|
|
|
import std.Rand;
|
2010-07-25 21:45:09 -07:00
|
|
|
|
|
|
|
fn main() {
|
2011-05-06 22:13:13 +02:00
|
|
|
let Rand.rng r1 = Rand.mk_rng();
|
2010-07-25 21:45:09 -07:00
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
{
|
2011-05-06 22:13:13 +02:00
|
|
|
auto r2 = Rand.mk_rng();
|
2010-07-25 21:45:09 -07:00
|
|
|
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();
|
|
|
|
}
|