2012-04-07 13:00:00 -05:00
|
|
|
// xfail-fast
|
|
|
|
// aux-build:crateresolve4a-1.rs
|
|
|
|
// aux-build:crateresolve4a-2.rs
|
|
|
|
// aux-build:crateresolve4b-1.rs
|
|
|
|
// aux-build:crateresolve4b-2.rs
|
|
|
|
|
|
|
|
mod a {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod crateresolve4b(vers = "0.1");
|
2012-04-07 13:00:00 -05:00
|
|
|
fn f() { assert crateresolve4b::f() == 20; }
|
|
|
|
}
|
|
|
|
|
|
|
|
mod b {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod crateresolve4b(vers = "0.2");
|
2012-04-07 13:00:00 -05:00
|
|
|
fn f() { assert crateresolve4b::g() == 10; }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
a::f();
|
|
|
|
b::f();
|
|
|
|
}
|