Add testcases for item name conflict at the same path level.

This commit is contained in:
Roy Frostig 2010-06-25 01:26:44 -07:00
parent 241305caab
commit 85a701c8f6
3 changed files with 20 additions and 0 deletions

View File

@ -374,6 +374,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
i8-incr.rs \
import.rs \
inner-module.rs \
item-name-overload.rs \
large-records.rs \
lazy-and-or.rs \
lazychan.rs \

View File

@ -0,0 +1,8 @@
// -*- rust -*-
mod foo {
fn bar[T](T f) -> int { ret 17; }
type bar[U, T] = tup(int, U, T);
}
fn main() {}

View File

@ -0,0 +1,11 @@
// -*- rust -*-
mod foo {
fn baz() {}
}
mod bar {
fn baz() {}
}
fn main() {}