aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-01-13 18:02:54 -0500
committerRafael Ávila de Espíndola <[email protected]>2011-01-13 18:52:06 -0500
commit3722326cd7dddf367edee4adf44fc3da89955428 (patch)
tree4bdb33619b340611976925e66105411c9db78604 /src
parentWrap long line. (diff)
downloadrust-3722326cd7dddf367edee4adf44fc3da89955428.tar.xz
rust-3722326cd7dddf367edee4adf44fc3da89955428.zip
Add or enable some tests.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
-rw-r--r--src/test/run-pass/import5.rs13
2 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 3c977092..eac87bfd 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -445,6 +445,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
import2.rs \
import3.rs \
import4.rs \
+ import5.rs \
item-name-overload.rs \
large-records.rs \
lazy-init.rs \
@@ -483,6 +484,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
arg-type-mismatch.rs \
import.rs \
import2.rs \
+ import3.rs \
while-type-error.rs \
), \
$(wildcard test/*/*.rs test/*/*.rc))
diff --git a/src/test/run-pass/import5.rs b/src/test/run-pass/import5.rs
new file mode 100644
index 00000000..5e07e708
--- /dev/null
+++ b/src/test/run-pass/import5.rs
@@ -0,0 +1,13 @@
+import foo.bar;
+mod foo {
+ import zed.bar;
+ mod zed {
+ fn bar() {
+ log "foo";
+ }
+ }
+}
+
+fn main(vec[str] args) {
+ bar();
+}