2012-04-05 20:31:03 -05:00
|
|
|
// xfail-fast
|
2012-04-06 01:57:45 -05:00
|
|
|
// aux-build:crateresolve2-1.rs
|
|
|
|
// aux-build:crateresolve2-2.rs
|
|
|
|
// aux-build:crateresolve2-3.rs
|
2012-04-05 20:31:03 -05:00
|
|
|
|
|
|
|
mod a {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod crateresolve2(vers = "0.1");
|
2012-04-06 01:57:45 -05:00
|
|
|
fn f() { assert crateresolve2::f() == 10; }
|
2012-04-05 20:31:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod b {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod crateresolve2(vers = "0.2");
|
2012-04-06 01:57:45 -05:00
|
|
|
fn f() { assert crateresolve2::f() == 20; }
|
2012-04-05 20:31:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod c {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod crateresolve2(vers = "0.3");
|
2012-04-06 01:57:45 -05:00
|
|
|
fn f() { assert crateresolve2::f() == 30; }
|
2012-04-05 20:31:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
a::f();
|
|
|
|
b::f();
|
|
|
|
c::f();
|
|
|
|
}
|