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