2011-07-12 19:36:40 -05:00
|
|
|
// xfail-fast
|
2011-07-11 18:01:46 -05:00
|
|
|
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn f() -> int { return 1; }
|
2011-07-11 18:01:46 -05:00
|
|
|
|
|
|
|
mod foo {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-08-01 19:30:05 -05:00
|
|
|
fn f() -> int { return 2; }
|
2011-07-27 07:19:39 -05:00
|
|
|
fn g() { assert (f() == 2); assert (::f() == 1); }
|
2011-07-11 18:01:46 -05:00
|
|
|
}
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn main() { return foo::g(); }
|
2011-07-11 18:01:46 -05:00
|
|
|
|