2011-06-28 18:29:37 -05:00
|
|
|
// xfail-stage0
|
2011-06-29 13:24:57 -05:00
|
|
|
// xfail-stage1
|
2011-06-28 18:29:37 -05:00
|
|
|
// tests that the pred in a claim isn't actually eval'd
|
|
|
|
use std;
|
|
|
|
import std::str::*;
|
|
|
|
import std::uint::*;
|
|
|
|
|
|
|
|
pred fails(uint a) -> bool {
|
|
|
|
fail;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let uint b = 4u;
|
|
|
|
claim fails(b);
|
|
|
|
}
|