2012-03-06 10:02:13 -06:00
|
|
|
// xfail-fast
|
|
|
|
// aux-build:cci_class.rs
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod cci_class;
|
2012-09-05 14:32:05 -05:00
|
|
|
use cci_class::kitties::*;
|
2012-03-06 10:02:13 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let nyan : cat = cat(52u, 99);
|
|
|
|
let kitty = cat(1000u, 2);
|
|
|
|
assert(nyan.how_hungry == 99);
|
|
|
|
assert(kitty.how_hungry == 2);
|
|
|
|
}
|